The Python Cache Toolkit.
Project description
Cache Alchemy
The Python Cache Toolkit.
Free software: MIT license
Documentation: https://cache_alchemy.readthedocs.io/en/latest/
Installation
$ pipenv install cache_alchemy
✨🍰✨
Only Python 3.6+ is supported.
Example
from cache_alchemy import memory_cache, redis_cache
from cache_alchemy.config import DefaultConfig
from redis import StrictRedis
config = DefaultConfig()
config.client = StrictRedis.from_url(config.CACHE_ALCHEMY_REDIS_URL)
@memory_cache()
def add(i: complex, j: complex) -> complex:
return i + j
@redis_cache()
def add(i: int, j: int) -> int:
return i + j
Features
Cache Json Serializable function return value with Distributed Redis Cache
Cache any function return value with Distributed Memory Cache
TODO
History
0.1.0 (2019-09-11)
Init Project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cache_alchemy-0.1.1.tar.gz
(13.8 kB
view hashes)
Built Distribution
Close
Hashes for cache_alchemy-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17b1b5b7f25c51d2ff4936d9f485c4493db0ac5a26e01135c4094d587b4f74fe |
|
MD5 | 7d43878a04942960c397c72f27cf2138 |
|
BLAKE2b-256 | f090bb747f00e63fe2fc507aa4bf1ab687e9624423d3a38f7c18b9188a7558c6 |