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 details)

Uploaded Source

File details

Details for the file lru_ng-2.0.0.tar.gz.

File metadata

  • Download URL: lru_ng-2.0.0.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for lru_ng-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2114a091aae088266d8645801a906c8a6e1096e421e29796ae7ab14248f7981a
MD5 dc22ebfdcce72acd2591951643736edc
BLAKE2b-256 452f6e56534d04b2cb78ab160662244bf358bad0bfd6d01e4172b6d14ae7e97d

See more details on using hashes here.

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