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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev10.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.dev10.tar.gz
Algorithm Hash digest
SHA256 9e9b08233b0f0837f8e619cd80d81840a9c671fd0bd733b08779dae8236de74f
MD5 b777afbf46c06a379f76391e853b1372
BLAKE2b-256 80b47935b08552aa836eb7b2c6669cc57c3f4b77ef2141c5be86c24d34c18811

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev10-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.dev10-py3-none-any.whl
Algorithm Hash digest
SHA256 011ce60f58f8002aa3d6ff34df8104b24cf276ecb80417242953b1dd08976940
MD5 b27adfe300f686359f0c5ac7aa4f798b
BLAKE2b-256 3a19764b705733ca9df0c4a10a2a181941df521ba39b4c7f025b922531f38c81

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