Class: LRUCache

Inherits:
Cache::StorageCache
  • Object
show all
Defined in:
lib/xamplr/test-support/bench-cache.rb

Instance Method Summary collapse

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