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.1.tar.gz
(15.8 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.1.tar.gz.
File metadata
- Download URL: lush_redisx-0.1.1.tar.gz
- Upload date:
- Size: 15.8 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 |
914956aa170ef872986ddbdd6ccd5f2b2abcf71b6b6592cae8fd9b92334afbb4
|
|
| MD5 |
e9500feb13165cd6daf63232474c886b
|
|
| BLAKE2b-256 |
5f8e16234181871ea6180930ea30f34b38518a5e2d10746eb665108a81b2e25e
|
File details
Details for the file lush_redisx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lush_redisx-0.1.1-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 |
487bd3ebc9d40746a412dfe66e9bd0b3a2141b68dbc0c1d9ea02dbe4ca36888b
|
|
| MD5 |
46658df208bebe9c15f7d4041bbaf79f
|
|
| BLAKE2b-256 |
9ed16ccd3d1955a2d504b32e2c446d678f99f35c99fd77a6957b520a673c6a49
|