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.3

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.3
File Size Uploaded
standard_cache-0.2.3.tar.gz 9.5 kB Details

Built distribution (wheel)

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

Total release size: 21.0 kB

Release files / standard_cache-0.2.3.tar.gz

Download URL standard_cache-0.2.3.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6843b0113712717b7185721450e5fe04038ee032cf3417ae190cfcbf9d2802b6
BLAKE2b-256 checksum
How to use checksums
e985c46137ded4f8c529d9c9bf95fbf8ebeb5e350fc5cf31e085cdfd9a840b65
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.3-py3-none-any.whl

Download URL standard_cache-0.2.3-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc6517f4ff4c6b10930d4c883a218cc7ae552443d27858f7a1f8615184077009
BLAKE2b-256 checksum
How to use checksums
d225172dede371b5e9b3539cb57500de9209d8b989515364c0d3919e1f9e86c4
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

This release

0.2.3 This release

2 release files

0.2.2

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