Class: Moneta::Adapters::Memory
- Inherits:
-
Object
- Object
- Moneta::Adapters::Memory
- Includes:
- Defaults, HashAdapter, IncrementSupport
- Defined in:
- lib/moneta/adapters/memory.rb
Overview
Memory backend using a hash to store the entries
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Memory
constructor
A new instance of Memory.
Methods included from IncrementSupport
Methods included from HashAdapter
#clear, #delete, #key?, #load, #store
Methods included from Defaults
#[], #[]=, #close, #decrement, #fetch, #increment, #key?
Methods included from OptionSupport
#expires, #prefix, #raw, #with
Constructor Details
#initialize(options = {}) ⇒ Memory
Returns a new instance of Memory.
10 11 12 |
# File 'lib/moneta/adapters/memory.rb', line 10 def initialize( = {}) @hash = {} end |