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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev20.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.dev20.tar.gz
Algorithm Hash digest
SHA256 9556cd25c71a2d364f0eb18809534673c2148fdeba3b305852b0d95125b50542
MD5 4e234f4380231ae4895b68d55514390b
BLAKE2b-256 cb9b0868e685849fea1db6924e06ffc28694d125df51adc3362d51467bbf53c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev20-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.dev20-py3-none-any.whl
Algorithm Hash digest
SHA256 521e44e3d2eae44dfe9b72ba2356f0e7dd3e0c43ec64bbcc5abfe5f09b3c84f8
MD5 5872a835c5732e0831be310d1ae2b3d0
BLAKE2b-256 761a8e75533b0d53411b4f5134c7b7f8c9b158c9a14a88f0120f14f08ad413eb

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