Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page