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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tigrbl_engine_rediscachethrough-0.1.1.dev6.tar.gz.
File metadata
- Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f55edbafc3cfb9a820973ef6ab673f8ac02a97399042d99f208cd77b142faad2
|
|
| MD5 |
8fddee6d5e13d3a9fd1f8003dd7369d0
|
|
| BLAKE2b-256 |
ea41621fe8107aa1eb34324659adbb4a8b07fb259539f7982db68a82ed7cb4d5
|
File details
Details for the file tigrbl_engine_rediscachethrough-0.1.1.dev6-py3-none-any.whl.
File metadata
- Download URL: tigrbl_engine_rediscachethrough-0.1.1.dev6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a2b81ec2fc0c076607e336ef5f1c42d8914e522efff9a6914846f9ecb6fa8d
|
|
| MD5 |
c9dae489f4ceb6cd5107d7bf58f341a8
|
|
| BLAKE2b-256 |
3981a11430c3f91572586f2e16329c467670d030c2f79a911f073ee020eb49c8
|