Class: LRU2Cache
- Inherits:
-
Cache::StorageCache
- Object
- Cache::StorageCache
- LRU2Cache
- Defined in:
- lib/xamplr/test-support/bench-cache.rb
Instance Method Summary collapse
-
#initialize(capacity = 20) ⇒ LRU2Cache
constructor
A new instance of LRU2Cache.
Constructor Details
#initialize(capacity = 20) ⇒ LRU2Cache
Returns a new instance of LRU2Cache.
22 23 24 |
# File 'lib/xamplr/test-support/bench-cache.rb', line 22 def initialize(capacity=20) super(Cache::Strategy::LRU2.new(capacity)) end |