Class: KyotoCabinet::Db::MemoryHash

Inherits:
PolymorphicDb show all
Defined in:
lib/kyotocabinet_ffi/db/memory_hash_db.rb

Overview

deprecated - use PolymorphicDb directly

Instance Method Summary collapse

Methods inherited from PolymorphicDb

#[], #[]=, #clear, #empty?, tmp_filedb

Methods included from KyotoCabinet::Db

#clear, #clear!, #close, #close!, #get, #last_error, #last_error_code, #last_error_message, #new, #open, #open!, #set, #set!, #size

Constructor Details

#initialize(*options) ⇒ MemoryHash

Returns a new instance of MemoryHash.



6
7
8
9
# File 'lib/kyotocabinet_ffi/db/memory_hash_db.rb', line 6

def initialize(*options)
  self.new
  self.open!(KyotoCabinet::MEMORY_HASH, *options)
end