Class: Lev::MemoryStore
Instance Method Summary collapse
- #fetch(key) ⇒ Object
-
#initialize ⇒ MemoryStore
constructor
A new instance of MemoryStore.
- #write(key, value) ⇒ Object
Constructor Details
#initialize ⇒ MemoryStore
Returns a new instance of MemoryStore.
4 5 6 |
# File 'lib/lev/memory_store.rb', line 4 def initialize @store = {} end |