Skip to main content

Tigrbl engine plugin for Redis/Postgres cache-through workflows.

Project description

tigrbl_engine_rediscachethrough

A Redis/Postgres cache-through engine plugin for tigrbl.

  • Uses Postgres (via tigrbl's built-in SQLAlchemy builders) for persistence.
  • Uses Redis for read-through/write-through caching of simple lookups.
  • Auto-discovers via entry point group tigrbl.engine.

Install

pip install -e .

Usage

from tigrbl.engine import EngineSpec

spec = EngineSpec(kind="rediscachethrough", url="postgresql://user:pwd@host:5432/db",
                  extras={"redis_url": "redis://localhost:6379/0", "cache_ttl_sec": 60})
provider = spec.to_provider()
engine_handles, session_factory = provider.build()

sess = session_factory()  # CacheThroughSession (subclass of TigrblSessionBase)
# e.g., await sess.execute(text("SELECT 1"))

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

tigrbl_engine_rediscachethrough-0.1.1.dev3.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file tigrbl_engine_rediscachethrough-0.1.1.dev3.tar.gz.

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev3.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_rediscachethrough-0.1.1.dev3.tar.gz
Algorithm Hash digest
SHA256 195f9fa29f270b0d136db1d890e92354e975c4c2bb874a1ad4ec9a68200cae3a
MD5 05ba6ccfa4be548eead31b294e900ba1
BLAKE2b-256 cf53d8769ee2b40f75407b0a4b17f3e5a6ac99f9692fd14c8e205b12f8568a19

See more details on using hashes here.

File details

Details for the file tigrbl_engine_rediscachethrough-0.1.1.dev3-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_rediscachethrough-0.1.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 dca51308ad17c7d4eed9fa6f543f163c3c2bc892a66c9dd19398c5b9f53dec07
MD5 2c798603494fd3c1ffb64d1de257c290
BLAKE2b-256 99de39f08f309f24ea425e3e7016b2a92020aa0f08cab9348f282558ef9a0371

See more details on using hashes here.

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