Module: Adapter::Memory
- Defined in:
- lib/adapter/memory.rb
Instance Method Summary collapse
- #clear(options = nil) ⇒ Object
- #delete(key, options = nil) ⇒ Object
- #read(key, options = nil) ⇒ Object
- #write(key, attributes, options = nil) ⇒ Object
Instance Method Details
#clear(options = nil) ⇒ Object
17 18 19 |
# File 'lib/adapter/memory.rb', line 17 def clear( = nil) client.clear end |
#delete(key, options = nil) ⇒ Object
13 14 15 |
# File 'lib/adapter/memory.rb', line 13 def delete(key, = nil) client.delete(key) end |
#read(key, options = nil) ⇒ Object
5 6 7 |
# File 'lib/adapter/memory.rb', line 5 def read(key, = nil) client[key] end |
#write(key, attributes, options = nil) ⇒ Object
9 10 11 |
# File 'lib/adapter/memory.rb', line 9 def write(key, attributes, = nil) client[key] = attributes end |