Skip to content
forked from kpn/cachetory

Caching library with support for multiple cache backends

License

Notifications You must be signed in to change notification settings

wpeterw/cachetory

 
 

Repository files navigation

Cachetory

PyPI Python versions Checks Coverage Code style

Documentation

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

About

Caching library with support for multiple cache backends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Makefile 0.8%