class Lev::MemoryStore
Public Class Methods
new()
click to toggle source
# File lib/lev/memory_store.rb, line 4 def initialize @store = {} end
Public Instance Methods
clear()
click to toggle source
# File lib/lev/memory_store.rb, line 16 def clear @store.clear end
fetch(key)
click to toggle source
# File lib/lev/memory_store.rb, line 8 def fetch(key) @store[key] end
write(key, value)
click to toggle source
# File lib/lev/memory_store.rb, line 12 def write(key, value) @store[key] = value end