Class
Glue::Cache::MemoryLRUCache
In:
lib/mega/cache.rb
Parent:
Cache::StorageCache
Implements an in-memory cache (uses a
Hash
as store) with a LRU replacement stragegy.
Methods
new
Constants
DEFAULT_CAPACITY
=
20
Public Class methods
new
(capacity=DEFAULT_CAPACITY) [
source
]