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