class documentation

class LruCache(_Generic[_LruType]):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method __len__ Undocumented
Method clear Undocumented
Method get Undocumented
Method insert Undocumented
Instance Variable capacity Undocumented
Instance Variable __cache Undocumented
def __init__(self, capacity):

Undocumented

Parameters
capacity:intUndocumented
def __len__(self):

Undocumented

Returns
intUndocumented
def clear(self):

Undocumented

def get(self, key):

Undocumented

Parameters
key:_HashableUndocumented
Returns
_Optional[_LruType]Undocumented
def insert(self, key, value):

Undocumented

Parameters
key:_HashableUndocumented
value:_LruTypeUndocumented
Returns
_LruTypeUndocumented
capacity =

Undocumented

__cache: _OrderedDict[_Hashable, _LruType] =

Undocumented