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.4.2.tar.gz
(19.9 kB
view details)
Built Distribution
cachetory-3.4.2-py3-none-any.whl
(37.6 kB
view details)
File details
Details for the file cachetory-3.4.2.tar.gz
.
File metadata
- Download URL: cachetory-3.4.2.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c271c69b7261e1ad1292b89a4dba2a55818bd74ef2c7fef1ec736267521b60a |
|
MD5 | db01527414dd5597073420733a1352d1 |
|
BLAKE2b-256 | 894f3f4ddef32e089b12c08f760a621e1a8103c496104f2aaaeb3e193f787013 |
File details
Details for the file cachetory-3.4.2-py3-none-any.whl
.
File metadata
- Download URL: cachetory-3.4.2-py3-none-any.whl
- Upload date:
- Size: 37.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49b501d3636216f5a5e8510528d6846f7e66e52bce4c9c7ad0282606535b627 |
|
MD5 | 708db0c4499112ae174a2dbdda15d77c |
|
BLAKE2b-256 | bcca9e93e1b873277b6936dea65451e9bfc5ec5044593b1d1cf8b49a2e757786 |