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-2.10.0.tar.gz
(19.2 kB
view hashes)
Built Distribution
cachetory-2.10.0-py3-none-any.whl
(35.3 kB
view hashes)
Close
Hashes for cachetory-2.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862bd553335bfd78c43093a81887273cacebe238dbb3703d6624753501d007ef |
|
MD5 | e8102efb2209651f56b92c9c399f89b4 |
|
BLAKE2b-256 | f67f2c4d07257c43524d0f755ac7c8c7a15b43af0e86a085d0c1c4bd60f1b129 |