Class: Juno::Adapters::LRUHash
- Defined in:
- lib/juno/adapters/lruhash.rb
Overview
LRUHash backend
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ LRUHash
constructor
Constructor.
Methods inherited from Memory
#clear, #delete, #key?, #load, #store
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ LRUHash
Constructor
Options:
-
:max_size - Maximum size of hash (default 1024)
14 15 16 |
# File 'lib/juno/adapters/lruhash.rb', line 14 def initialize( = {}) @memory = Hashery::LRUHash.new([:max_size] || 1024) end |