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.5.1.tar.gz
(20.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cachetory-3.5.1-py3-none-any.whl
(37.8 kB
view details)
File details
Details for the file cachetory-3.5.1.tar.gz.
File metadata
- Download URL: cachetory-3.5.1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5229cceec2ebae6e5f579dd885edcd47ac3ef5eb1f41b69d107549502ae1a88
|
|
| MD5 |
6dda1fcee28141723ee884a124d7459b
|
|
| BLAKE2b-256 |
31baf4fa5e02df367b76a854eeb47a16dd1e5cf530495172381ad1e04be3c8d1
|
File details
Details for the file cachetory-3.5.1-py3-none-any.whl.
File metadata
- Download URL: cachetory-3.5.1-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ec01fd7f68d5370342f8c9901e8fb6b7b6d9080ceb161cffac94b829e3cdf22
|
|
| MD5 |
27bfbbc6ff93232cbbe03d9f80d72221
|
|
| BLAKE2b-256 |
88dfafb7f4f68d4afeae66f6de3e096f0ae7d394c84e41e5033d4d14f3b50168
|