module Asynchronic::DataStore::Helper

Public Instance Methods

clear() click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 16
def clear
  keys.each { |k| delete k }
end
each() { |k, self| ... } click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 7
def each
  keys.each { |k| yield [k, self[k]] }
  nil
end
lazy() click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 36
def lazy
  LazyStore.new self
end
lazy?() click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 32
def lazy?
  false
end
merge(hash) click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 12
def merge(hash)
  hash.each { |k,v| self[k] = v }
end
no_lazy() click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 40
def no_lazy
  NoLazyStore.new self
end
readonly() click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 28
def readonly
  ReadonlyStore.new self
end
readonly?() click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 24
def readonly?
  false
end
scoped(key) click to toggle source
# File lib/asynchronic/data_store/helper.rb, line 20
def scoped(key)
  ScopedStore.new self, key
end