Class: Wee::Utils::LRUCache

Inherits:
Cache::StorageCache show all
Defined in:
lib/wee/utils/cache.rb

Instance Method Summary collapse

Methods inherited from Cache::StorageCache

#delete, #fetch, #has_key?, #store

Constructor Details

#initialize(capacity = 20) ⇒ LRUCache

Returns a new instance of LRUCache.



4
5
6
# File 'lib/wee/utils/cache.rb', line 4

def initialize(capacity=20)
  super(Cache::Strategy::LRU.new(capacity))
end