Phzyx versioned resource cache (memory / Redis)
Project description
phzyx-cache
Public battery. uv add 'phzyx-cache' or uv add 'phzyx-forge[cache]'.
Per-resource version keys for list caching. Writes bump the version so stale lists miss.
from phzyx.cache import MemoryCache, ResourceCache
cache = ResourceCache(MemoryCache())
cache.set_list("users", "v1", [{"id": 1}]) # version auto-managed
cache.invalidate("users") # on write
Redis:
uv add 'phzyx-cache[redis]'
Limits: only Phzyx write path invalidates; external DB writers can serve stale lists until TTL/version bump. Not a query cache for arbitrary SQL.
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
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
File details
Details for the file phzyx_cache-0.1.0.tar.gz.
File metadata
- Download URL: phzyx_cache-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5462cffdbbcd00fb5d8b583173a983f15e6c72578c191cf4f6c0524f3ed7faf3
|
|
| MD5 |
fe250048424e456c411e4667c6d58cf6
|
|
| BLAKE2b-256 |
a4ece161a8db128a8897436be50c9cacc26609e38b9d67b07e268ac59b549cae
|
Provenance
The following attestation bundles were made for phzyx_cache-0.1.0.tar.gz:
Publisher:
publish.yml on phzyxyz/forge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phzyx_cache-0.1.0.tar.gz -
Subject digest:
5462cffdbbcd00fb5d8b583173a983f15e6c72578c191cf4f6c0524f3ed7faf3 - Sigstore transparency entry: 2269292077
- Sigstore integration time:
-
Permalink:
phzyxyz/forge@c954d727f719bfe6754c1b91aa7acd9682def480 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/phzyxyz
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c954d727f719bfe6754c1b91aa7acd9682def480 -
Trigger Event:
push
-
Statement type:
File details
Details for the file phzyx_cache-0.1.0-py3-none-any.whl.
File metadata
- Download URL: phzyx_cache-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34cb4dab17df5cba50240f980bfe37eab8f8d46a1f23334a40bf17a06985a21d
|
|
| MD5 |
ef2ea03cc68ec30f543d07de3706ac3c
|
|
| BLAKE2b-256 |
d67c829a4b17984189253876538e282cd3a3af2127c5d651f75e243713f8edb9
|
Provenance
The following attestation bundles were made for phzyx_cache-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on phzyxyz/forge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phzyx_cache-0.1.0-py3-none-any.whl -
Subject digest:
34cb4dab17df5cba50240f980bfe37eab8f8d46a1f23334a40bf17a06985a21d - Sigstore transparency entry: 2269292343
- Sigstore integration time:
-
Permalink:
phzyxyz/forge@c954d727f719bfe6754c1b91aa7acd9682def480 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/phzyxyz
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c954d727f719bfe6754c1b91aa7acd9682def480 -
Trigger Event:
push
-
Statement type: