The cachetools module provides various memoizing collections and decorators, including variants of the Python Standard Library’s @lru_cache function decorator.
For the purpose of this module, a cache is a mutablemapping of a fixed maximum size. When the cache is full, i.e. by adding another item the cache would exceed its maximum size, the cache must choose which item(s) to discard based on a suitable cache algorithm.
This module provides multiple cache classes based on different cache algorithms, as well as decorators for easily memoizing function and method calls.
What's the difference between this Python project and similar ones?
Anyone who agrees with this pull request could submit an Approve review to it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/1955
**Author:** [@genularity](https://github.com/genularity)
**Created:** 2/23/2022
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `add-cachetools`
---
### 📝 Commits (1)
- [`7197e87`](https://github.com/vinta/awesome-python/commit/7197e871f8ff72841b5428c74214af9e34ce45a6) Add cachetools
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## cachetools
The [cachetools](https://cachetools.readthedocs.io/en/stable/) module provides various memoizing collections and decorators, including variants of the Python Standard Library’s [@lru_cache](http://docs.python.org/3/library/functools.html#functools.lru_cache) function decorator.
For the purpose of this module, a cache is a [mutable](http://docs.python.org/dev/glossary.html#term-mutable) [mapping](http://docs.python.org/dev/glossary.html#term-mapping) of a fixed maximum size. When the cache is full, i.e. by adding another item the cache would exceed its maximum size, the cache must choose which item(s) to discard based on a suitable [cache algorithm](http://en.wikipedia.org/wiki/Cache_algorithms).
This module provides multiple cache classes based on different cache algorithms, as well as decorators for easily memoizing function and method calls.
## What's the difference between this Python project and similar ones?
This module provides many useful variants and extensions of the Python Standard Library’s [@lru_cache (http://docs.python.org/3/library/functools.html#functools.lru_cache) function decorator.
--
Anyone who agrees with this pull request could submit an *Approve* review to it.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1955
Author: @genularity
Created: 2/23/2022
Status: ❌ Closed
Base:
master← Head:add-cachetools📝 Commits (1)
7197e87Add cachetools📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
cachetools
The cachetools module provides various memoizing collections and decorators, including variants of the Python Standard Library’s @lru_cache function decorator.
For the purpose of this module, a cache is a mutable mapping of a fixed maximum size. When the cache is full, i.e. by adding another item the cache would exceed its maximum size, the cache must choose which item(s) to discard based on a suitable cache algorithm.
This module provides multiple cache classes based on different cache algorithms, as well as decorators for easily memoizing function and method calls.
What's the difference between this Python project and similar ones?
This module provides many useful variants and extensions of the Python Standard Library’s [@lru_cache (http://docs.python.org/3/library/functools.html#functools.lru_cache) function decorator.
--
Anyone who agrees with this pull request could submit an Approve review to it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.