Class: LRU2Cache

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

Instance Method Summary collapse

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