Skip to main content

Python 2.7 memoizing collections and decorators

Project description

This module provides various memoizing collections and function decorators, including a variant of the Python 3 Standard Library lru_cache decorator.

Important Note: This module is in early pre-alpha, and not fit for any purpose (yet).

>>> from cachetools import LRUCache
>>> cache = LRUCache(maxsize=16)
>>> cache['test'] = 1
>>> cache.info()
CacheInfo(hits=0, misses=0, maxsize=16, currsize=1)
>>> cache['test']
1
>>> cache.info()
CacheInfo(hits=1, misses=0, maxsize=16, currsize=1)

Installation

Install cachetools using pip:

pip install cachetools

Project Resources

Latest PyPI version Number of PyPI downloads

License

cachetools is Copyright 2014 Thomas Kemmer.

Licensed under the MIT License.

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

cachetools-0.0.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file cachetools-0.0.0.tar.gz.

File metadata

  • Download URL: cachetools-0.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cachetools-0.0.0.tar.gz
Algorithm Hash digest
SHA256 3b0c183fdd17fdf7ac874c617bc725f5da6aff39f8ad5c658e66fffaef7c64cb
MD5 a1fc0f79d7c65f1cd91173a3bb47a2ae
BLAKE2b-256 53312a2de21a0325453d96df931ed358270a47a968448f8b3d683bfa9d8aef5f

See more details on using hashes here.

Supported by

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