Special container classes.
Classes
LFUCache([size])
LFUCache
Limited cache which purges least frequently used items.
Bases: dict
dict
Initialize internal LFU cache.
Update key usage if found and return value, else return default.
Return list of items, not updating usage count.
Return iterator of items, not updating usage count.
Return iterator of values, not updating usage count.
Remove and return a value.
Remove and return an item.
Update key usage if found and return value, else set and return default.
Shrink ca. 5% of entries.
Get number of uses for given key (without increasing the number of uses)
Return list of values, not updating usage count.