A caching library that provides LRU & TTL caching, plus memoization decorators.
Describe features.
What's the difference between this Python project and similar ones?
Compared to functools
it provides async support out of the box
it provides ttl caching out of the box
Compared to many other caching libraries in the same niche
simpler approach (it does not consider object sizes, only its count)
simpler & more performant approach for ttl caching (using monotonic instead of datetime)
more correct approach (when it comes to __hash__ and __eq__ functions)
ability to discard emptyish/nullish values from being cached at the decorator level
proper type hints
--
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/1814
**Author:** [@castarco](https://github.com/castarco)
**Created:** 10/6/2021
**Status:** 🔄 Open
**Base:** `master` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`6f835a9`](https://github.com/vinta/awesome-python/commit/6f835a94d0fbbd64f1d47f5c0030da2c98ef8aff) docs: add `power-cache` to caching section
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## What is this Python project?
A caching library that provides LRU & TTL caching, plus memoization decorators.
Describe features.
## What's the difference between this Python project and similar ones?
### Compared to `functools`
- it provides async support out of the box
- it provides ttl caching out of the box
### Compared to many other caching libraries in the same niche
- simpler approach (it does not consider object sizes, only its count)
- simpler & more performant approach for ttl caching (using `monotonic` instead of `datetime`)
- more correct approach (when it comes to `__hash__` and `__eq__` functions)
- ability to discard emptyish/nullish values from being cached at the decorator level
- proper type hints
--
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/1814
Author: @castarco
Created: 10/6/2021
Status: 🔄 Open
Base:
master← Head:patch-1📝 Commits (1)
6f835a9docs: addpower-cacheto caching section📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
A caching library that provides LRU & TTL caching, plus memoization decorators.
Describe features.
What's the difference between this Python project and similar ones?
Compared to
functoolsCompared to many other caching libraries in the same niche
monotonicinstead ofdatetime)__hash__and__eq__functions)--
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.