class documentation

class LocalWeakReferencedCache(weakref.WeakKeyDictionary):

View In Hierarchy

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
def __getitem__(self, key):

Undocumented

def __init__(self, limit=None):

Undocumented

def __setitem__(self, key, value):

Undocumented

data =

Undocumented