module Adapter::PStore
Constants
- VERSION
Public Instance Methods
clear(options = nil)
click to toggle source
# File lib/adapter/pstore.rb, line 22 def clear(options = nil) client.transaction do client.roots.each do |key| client.delete(key) end end end
delete(key, options = nil)
click to toggle source
# File lib/adapter/pstore.rb, line 18 def delete(key, options = nil) client.transaction { client.delete(key) } end
key?(key, options = nil)
click to toggle source
# File lib/adapter/pstore.rb, line 6 def key?(key, options = nil) client.transaction(true) { client.root?(key) } end
read(key, options = nil)
click to toggle source
# File lib/adapter/pstore.rb, line 10 def read(key, options = nil) client.transaction(true) { client[key] } end
write(key, attributes, options = nil)
click to toggle source
# File lib/adapter/pstore.rb, line 14 def write(key, attributes, options = nil) client.transaction { client[key] = attributes } end