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.0.0.tar.gz
(19.3 kB
view hashes)
Built Distribution
cachetory-3.0.0-py3-none-any.whl
(35.8 kB
view hashes)
Close
Hashes for cachetory-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566fdd374e51698c28d0e731303a334485201f02a926ece53b76d8ad86eeceab |
|
MD5 | 864b8b5aec9748a2f5b2fba7a6aba891 |
|
BLAKE2b-256 | 3fff0ae29df212a1a00182b7714c7a93ff6a14913da79a468176cde4ba59fdaf |