Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phzyx_cache-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phzyx_cache-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for phzyx_cache-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5462cffdbbcd00fb5d8b583173a983f15e6c72578c191cf4f6c0524f3ed7faf3
MD5 fe250048424e456c411e4667c6d58cf6
BLAKE2b-256 a4ece161a8db128a8897436be50c9cacc26609e38b9d67b07e268ac59b549cae

See more details on using hashes here.

Provenance

The following attestation bundles were made for phzyx_cache-0.1.0.tar.gz:

Publisher: publish.yml on phzyxyz/forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for phzyx_cache-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34cb4dab17df5cba50240f980bfe37eab8f8d46a1f23334a40bf17a06985a21d
MD5 ef2ea03cc68ec30f543d07de3706ac3c
BLAKE2b-256 d67c829a4b17984189253876538e282cd3a3af2127c5d651f75e243713f8edb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for phzyx_cache-0.1.0-py3-none-any.whl:

Publisher: publish.yml on phzyxyz/forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page