class LocalWeakReferencedCache(weakref.WeakKeyDictionary):
A weakref.WeakKeyDictionary implementation that uses LocalCache as its underlying data structure, making it ordered and capable of being size-limited.
Useful for memoization, while avoiding keeping received arguments in memory only because of the cached references.
Note: like LocalCache and unlike weakref.WeakKeyDictionary, it cannot be instantiated with an initial dictionary.
Method | __getitem__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Instance Variable | data |
Undocumented |