class documentation

class LRUCache(dict):

View In Hierarchy

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

Undocumented

def __init__(self, capacity, threshold=0.5):

Undocumented

def __setitem__(self, key, value):

Undocumented

def _manage_size(self):

Undocumented

def setdefault(self, key, value):

Undocumented

def values(self):

Undocumented

capacity =

Undocumented

threshold =

Undocumented