Class: DistributedTrie::KvsRedis

Inherits:
KvsBase show all
Defined in:
lib/distributedtrie/kvs/redis.rb

Overview

Tokyo Cabinet implementation

Instance Method Summary collapse

Methods inherited from KvsBase

#enabled?, #get, #put!

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