Skip to main content

A dictionary with key expiration and callbacks.

Project description

A Python 3 module that provides a TimedDict class, which is designed to mimic the functionality of Redis’s EXPIRE. Keys are set to expire after a certain number of seconds, and a callback function may optionally be called. Keys are continuously checked for expiration in a separate thread, so stale keys do not pile up in memory.

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

timeddictionary-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file timeddictionary-0.1.1.tar.gz.

File metadata

  • Download URL: timeddictionary-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for timeddictionary-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59f977df675bad2c93580bd96685717b7acb50725f7d93a26d000819e75efd7d
MD5 cfab64eb61d0198fdfc52b8857032602
BLAKE2b-256 5a048a46a004d38189d636394c25a6d71c2905159254b978dbaabd7e85001789

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