Fixed-size dict with least-recently used (LRU) replacement policy and optional callback.
Project description
The C-extension module lru_ng provides a class LRUDict that is compatible with a large subset of methods in Python's dict. It maintains recent-access order and enforces a fixed size, discarding the least-recently used items when the capacity is filled.
This extension class is largely compatible with the lru.LRU type.
For more information, please visit the project homepage: https://github.com/congma/lru_ng
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lru_ng-2.0.0.tar.gz
(45.1 kB
view hashes)