Skip to main content

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

Metadata

Release files for lush-redisx 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lush-redisx 0.1.2
File Size Uploaded Provenance Actions
lush_redisx-0.1.2.tar.gz 17.0 kB Without provenance Details for lush_redisx-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lush-redisx 0.1.2
File Interpreter ABI Platform Actions
lush_redisx-0.1.2-py3-none-any.whl Python 3 none any Details for lush_redisx-0.1.2-py3-none-any.whl

Total release size: 37.3 kB

Release files / lush_redisx-0.1.2.tar.gz

Download URL lush_redisx-0.1.2.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0ae529222444f5f343a13a925bdfc5534d0281571b9853751106b6eb1ddc6a55
BLAKE2b-256 checksum
How to use checksums
83170a182e60ba9932a8e0d11b23d53c3ddae543c797afdd453edd71ec9042c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}

Release files / lush_redisx-0.1.2-py3-none-any.whl

Download URL lush_redisx-0.1.2-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ce3c7fcee8713d3e77502cbb3c0a5c70e2e5db649a4e1c35685d6b913a65911
BLAKE2b-256 checksum
How to use checksums
57936400e207492e96a906ba73d9c1c3f263be54fde18812f7eef2335ea20a0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}

Security for lush-redisx 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page