Class: DistributedTrie::KvsRedis
- Defined in:
- lib/distributedtrie/kvs/redis.rb
Overview
Tokyo Cabinet implementation
Instance Method Summary collapse
-
#initialize(hostname = "localhost") ⇒ KvsRedis
constructor
A new instance of KvsRedis.
Methods inherited from KvsBase
Methods inherited from KvsIf
#_getInternal, #delete, #get, #put!
Constructor Details
#initialize(hostname = "localhost") ⇒ KvsRedis
Returns a new instance of KvsRedis.
41 42 43 44 |
# File 'lib/distributedtrie/kvs/redis.rb', line 41 def initialize( hostname = "localhost" ) @db = Redis.new( :host => hostname ) @db end |