#!/usr/bin/env ruby require_relative '../lib/memcached_test.rb' server = MemcachedTest::Server.new(ARGV[0], ARGV[1]) main = Thread.new { puts('Starting server......') server.run() } Thread.new { server.purge_expired_keys(10) } main.join() puts('Server closed')