Simple annotation-based caching for your functions
Project description
Cachual is a simple library that makes it easy to cache the return values from your python functions with an annotation:
cache = RedisCache()
@cache.cached(ttl=900)
def is_user_valid(user_id):
...
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
Cachual-0.2.2.tar.gz
(18.0 kB
view details)
File details
Details for the file Cachual-0.2.2.tar.gz.
File metadata
- Download URL: Cachual-0.2.2.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c9a57941e9e854bc72dc6ca503d6984bfe88be1364ea5ec1e816e764e674fe0
|
|
| MD5 |
fa56b2711f242e576dd2041a3cf955aa
|
|
| BLAKE2b-256 |
97415717043b0c755dbe39d2456988e078b94d68aeaebb964ebd202ed4a1f328
|