Module: Adapter::Memory

Defined in:
lib/adapter/memory.rb

Instance Method Summary collapse

Instance Method Details

#clear(options = nil) ⇒ Object



17
18
19
# File 'lib/adapter/memory.rb', line 17

def clear(options = nil)
  client.clear
end

#delete(key, options = nil) ⇒ Object



13
14
15
# File 'lib/adapter/memory.rb', line 13

def delete(key, options = nil)
  client.delete(key)
end

#read(key, options = nil) ⇒ Object



5
6
7
# File 'lib/adapter/memory.rb', line 5

def read(key, options = nil)
  client[key]
end

#write(key, attributes, options = nil) ⇒ Object



9
10
11
# File 'lib/adapter/memory.rb', line 9

def write(key, attributes, options = nil)
  client[key] = attributes
end