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

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.dev22.tar.gz.

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev22.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.dev22.tar.gz
Algorithm Hash digest
SHA256 fc62e76f95058edcf127c3d43702379e4b746c785ffabff1d195134a4a1f8c86
MD5 a4fe942631c1b7de8a4248e057fe8a32
BLAKE2b-256 f1eb708ee79ea7f0ac22f0bc5466afd6417b2af4c29acb33db8b85a034df4ae2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev22-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.dev22-py3-none-any.whl
Algorithm Hash digest
SHA256 a54f853f0ee4ef09cdbc07e452f2ebb0ac02be251651ff903b5ca73e402f545d
MD5 8c4b4053eb9a7f93504874434088b325
BLAKE2b-256 6065a52c3a0c553b97f4f0a66b50f366d8bc6546be7340051a60c1b471345eb6

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