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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.dev5.tar.gz
Algorithm Hash digest
SHA256 3deab2dc1f01e3ac3ceeed17d51b8f15b5736529b755f2ab67d45fe37d393658
MD5 860c10c14872de0c416b9e9395500319
BLAKE2b-256 38ee09082e5006453a1977c23508c441bea43f0527cfa12613d6819c399dfcd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev5-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 57067f560a56ce08c45b662809cb9013e051e7f01c60de2b05bafab7bd24cf25
MD5 bf3d723ff948698ae6d7902d86b70fc3
BLAKE2b-256 6088dea124c1b9b89ae08d2d2baf63de1d0ab2fb7fde01c851dcf80402640064

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