Contents

cachetools 5.3.3

0

Extensible memoizing collections and decorators

Cachetools is a python library that provides Extensible memoizing collections and decorators. It provides multiple cache classes based on different cache algorithms, as well as decorators for easily memoizing function and method calls.

Stars: 2093, Watchers: 2093, Forks: 158, Open Issues: 11

The tkem/cachetools repo was created 10 years ago and the last code push was 1 weeks ago.
The project is very popular with an impressive 2093 github stars!

How to Install cachetools

You can install cachetools using pip

pip install cachetools

or add it to a project with poetry

poetry add cachetools

Package Details

Author
Thomas Kemmer
License
MIT
Homepage
https://github.com/tkem/cachetools/
PyPi:
https://pypi.org/project/cachetools/
GitHub Repo:
https://github.com/tkem/cachetools

Classifiers

  • Software Development/Libraries/Python Modules
No  cachetools  pypi packages just yet.

Errors

A list of common cachetools errors.

Code Examples

Here are some cachetools code examples and snippets.

GitHub Issues

The cachetools package has 11 open issues on GitHub

  • Add type annotations
  • Additional behavioral context for TTL Cache Docu.
  • Key-level locking which corrects multithreading performance
  • Consider adding async cache decorators
  • Invalidating cached values in "cachemethod"
  • [Feature] expose the cache, key and lock arguments of @cachetools.cached as attributes on the decorated function
  • cache_clear() and cache_info() would be handy in regular decorators

See more issues on GitHub