Caching library with support for multiple cache backends
Project description
Cachetory
Documentation
Sneak peak
from cachetory import serializers
from cachetory.backends import async_ as async_backends
from cachetory.caches.async_ import Cache
cache = Cache[int, bytes](
serializer=serializers.from_url("pickle://?pickle-protocol=4"),
backend=async_backends.from_url("redis://localhost:6379"),
)
async def main() -> None:
await cache.set("foo", 42)
assert await cache.get("foo") == 42
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
cachetory-3.2.0.tar.gz
(19.8 kB
view hashes)
Built Distribution
cachetory-3.2.0-py3-none-any.whl
(37.4 kB
view hashes)
Close
Hashes for cachetory-3.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a5466d35154f62f7a69910e4d81159baa67d765f9dc4ab6bac349910aa6b0d6 |
|
MD5 | b8e2e4ae5a13c8f311001a065897fa86 |
|
BLAKE2b-256 | 53f859593f759f40e4f77472e4a3835644d4e3fa2a3ee97e94b25f35abe2f1dd |