Sha256: 424e4917950abfe77a1fef4ed0b733edd3584d664ed0ab7304dbfe41b5b57bee

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

#!/usr/bin/env ruby

require 'drb/drb'
require 'lrucache'

# The URI for the server to connect to
URI="druby://localhost:18787"

# The object that handles requests on the server
FRONT_OBJECT = LRUCache.new(:ttl => 60 * 5)

$SAFE = 1 # disable eval() and friends

DRb.start_service(URI, FRONT_OBJECT)
# Wait for the drb server thread to finish before exiting.
DRb.thread.join

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shadowsocks_ruby-0.1.2 bin/lrucache_server
shadowsocks_ruby-0.1.1 bin/lrucache_server
shadowsocks_ruby-0.1.0 bin/lrucache_server