cachetory 3.4.0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

cachetory 3.4.0

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.