class LRUCache(dict):
Dictionary with 'squishy' removal of least recently used items.
Note that either get() or [] should be used here, but generally its not safe to do an "in" check first as the dictionary can change subsequent to that call.
Method | __getitem__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | _inc_counter |
Undocumented |
Method | _manage_size |
Undocumented |
Method | get |
Undocumented |
Method | setdefault |
Undocumented |
Method | values |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | _counter |
Undocumented |
Instance Variable | _mutex |
Undocumented |
Instance Variable | capacity |
Undocumented |
Instance Variable | size_alert |
Undocumented |
Instance Variable | threshold |
Undocumented |
Property | size_threshold |
Undocumented |