Redis async client.
Project description
Installation
pip install redis-async-client
Usage Async
from redis_async_client import AsyncRedisClient, RedisSettings
redis_settings = RedisSettings()
pool: redis_async.ConnectionPool = redis_settings.make_pool()
async with redis_async.Redis(connection_pool=pool) as conn:
async_client = AsyncRedisClient(conn)
data = await async_client.health_check()
assert data == {'test': 'test'}
or
from redis_async_client import RedisSettings, get_redis_connection
redis_settings = RedisSettings()
async for client in get_redis_connection(redis_settings):
data = await client.health_check()
assert data == {'test': 'test'}
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
Close
Hashes for redis_async_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d7fd9ff7806a088be97bdd966d0e6002d9874c943984f40de306d315e200c54 |
|
MD5 | 40bb2ee1c03329c6bb0f897dee7e9219 |
|
BLAKE2b-256 | 6248c53a9ae4cd32bceada8edfe4ed0257b696dcbfe0339ec1ac4554a9e7e12e |