Class: Cachew::Hash
Overview
In-memory cache adapter.
Constant Summary
Constants inherited from Adapter
Instance Method Summary collapse
-
#initialize(store = {}) ⇒ Hash
constructor
A new instance of Hash.
Methods inherited from Adapter
Constructor Details
#initialize(store = {}) ⇒ Hash
Returns a new instance of Hash.
7 8 9 |
# File 'lib/cachew/hash.rb', line 7 def initialize(store = {}) @store = store.to_hash end |