Hash with LRU expiry policy. There are at most max_size elements in a LRUHash. When adding more elements old elements are removed according to LRU policy.
Based on Robert Klemme‘s LRUHash class.
LRUHash, Copyright (c) 2010 Robert Klemme.
Initialize new LRUHash instance.
max_size - default_value - block -
Alias for store
Alias for each_pair
Iterate over each key.
Iterate over each pair.
Iterate over each value.
Alias for has_key?
Alias for to_s
Size of the hash.
Alias for has_value?
[Validate]