Skip to main content

standard-cache

Redis caching helpers and distributed locks for the standard Python library. The package name is standard-cache; Python imports are under std.cache.

The source package is built and tested. PyPI availability and publisher setup for the add-on have not yet been verified.

After the first PyPI release, install it with:

python -m pip install standard-cache
from std.cache import RedisClient, RedisConfig, cached

cache = RedisClient(RedisConfig(host="localhost", key_prefix="shop:"))
await cache.connect()


@cached(cache, ttl=300)
async def get_product(product_id: int) -> dict[str, str]:
    return await load_product(product_id)


try:
    product = await get_product(42)
finally:
    await cache.close()

RedisClient supports JSON-compatible values, raw bytes, expiration, atomic conditions, key scanning, and prefix-aware deletion. cached and cache_aside preserve sync and async function behavior. DistributedLock and with_lock provide lease-based locks with token-checked release. See the cache guide for lifecycle, serialization, failure, and locking behavior.

Metadata

Release files for standard-cache 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for standard-cache 0.2.2
File Size Uploaded
standard_cache-0.2.2.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for standard-cache 0.2.2
File Interpreter ABI Platform
standard_cache-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / standard_cache-0.2.2.tar.gz

Download URL standard_cache-0.2.2.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
43c3ae570655f4db911ff7e30152f9f92ae4880324bf3b056e32588931a41245
BLAKE2b-256 checksum
How to use checksums
d323198799643d43ed38fc433b37091e02a955cf2869dcf642afe3e4f51bb7bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / standard_cache-0.2.2-py3-none-any.whl

Download URL standard_cache-0.2.2-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6929d02bd6b37735161c08e19ecb0fdaa4204f994ee1a3ee34ded2b98c920ae
BLAKE2b-256 checksum
How to use checksums
e57084b1feb749af3e0ed726ee32658328511d3c67a4e6b35e5d582568dbd764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.4

2 release files

0.2.3

2 release files

This release

0.2.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page