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.4.0.tar.gz
(19.9 kB
view hashes)
Built Distribution
cachetory-3.4.0-py3-none-any.whl
(37.5 kB
view hashes)
Close
Hashes for cachetory-3.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae30d7af1efc58741c39f5e76502799341c4f0cd75c714b386a4b767748a0cc9 |
|
MD5 | 318cdcad2beff6b32584db33e380845d |
|
BLAKE2b-256 | c102ceac5be2b5c52e642e9202cd520b76f6d9ffa0c36654c9ac875da87c83e3 |