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