class LRUCache(dict):
A dictionary-like object that stores a limited number of items, discarding lesser used items periodically.
this is a rewrite of LRUCache from Myghty to use a periodic timestamp-based paradigm so that synchronization is not really needed. the size management is inexact.
Class | _Item |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | _manage_size |
Undocumented |
Method | setdefault |
Undocumented |
Method | values |
Undocumented |
Instance Variable | capacity |
Undocumented |
Instance Variable | threshold |
Undocumented |