Module: MemStore

Defined in:
lib/memstore.rb,
lib/memstore/json.rb,
lib/memstore/yaml.rb,
lib/memstore/msgpack.rb,
lib/memstore/queries.rb,
lib/memstore/version.rb,
lib/memstore/hashstore.rb,
lib/memstore/objectstore.rb

Defined Under Namespace

Classes: HashStore, ObjectStore

Constant Summary collapse

VERSION =
"1.2.1"

Class Method Summary collapse

Class Method Details

.from_binary(binary) ⇒ Object

Shortcut to ObjectStore::from_binary



16
17
18
# File 'lib/memstore.rb', line 16

def self.from_binary(binary)
  ObjectStore.from_binary(binary)
end

.from_file(file) ⇒ Object

Shortcut to ObjectStore::from_file



21
22
23
# File 'lib/memstore.rb', line 21

def self.from_file(file)
  ObjectStore.from_file(file)
end

.new(key = nil, items = {}) ⇒ Object

Shortcut to ObjectStore::new



11
12
13
# File 'lib/memstore.rb', line 11

def self.new(key=nil, items={})
  ObjectStore.new(key, items)
end

.with_file(file, key = nil, items = {}, &block) ⇒ Object

Shortcut to ObjectStore::with_file



26
27
28
# File 'lib/memstore.rb', line 26

def self.with_file(file, key=nil, items={}, &block)
  ObjectStore.with_file(file, key, items, &block)
end