see README.md
Project description
lush-redisx
基于 redis(redis-py) asyncio 的一层薄封装: 连接池、key 前缀、以及一些常用的小模式(缓存/防抖/节流).
例子
import asyncio
from lush_redisx import AsyncRedisManager
async def main() -> None:
redis_mgr = AsyncRedisManager(host="localhost", port=6379, db=0, key_prefix="demo")
# set/get 会自动加前缀,避免不同业务互相踩 key
await redis_mgr.op_prefixed.set("foo", {"bar": 1})
value = await redis_mgr.op_prefixed.get("foo")
print(value)
await redis_mgr.close()
asyncio.run(main())
开发
uv sync -p 3.10 --frozen
uv run -p 3.10 pytest
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
lush_redisx-0.1.0.tar.gz
(15.7 kB
view details)
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 lush_redisx-0.1.0.tar.gz.
File metadata
- Download URL: lush_redisx-0.1.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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 |
48a717a3d8010037fef00fcd774a5fa1677a0589d13e9e1f4b20159c8f86fea6
|
|
| MD5 |
152c830b48b3e0976e2379ff73f2cd4f
|
|
| BLAKE2b-256 |
4a6ec3d1a1065abdcd5de73afaff7a5d6d8a701be816d804e3266bfbe73a4a62
|
File details
Details for the file lush_redisx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lush_redisx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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 |
a8b6726b2fb45ea95f4c2029794bfb92c625dcb2f0987c17aed1dc29a9cab575
|
|
| MD5 |
139f5ee61acbd4a3e9fec16fbc65d902
|
|
| BLAKE2b-256 |
14c585ac665dad5eb646951276b3c1a73d644e61ce3862e5d4692f5116811b7f
|