Method: Rediska::Databases::PStore#initialize
- Defined in:
- lib/rediska/databases/pstore.rb
#initialize(instance_key, id) ⇒ PStore
Returns a new instance of PStore.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rediska/databases/pstore.rb', line 27 def initialize(instance_key, id) @id = id @store = self.class.pstore(instance_key) @store.transaction do @store[db_name] ||= {} @db = @store[db_name] end super() end |