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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a091a724bf7ba059ea30879138be13e537a1ee1e2383d84dfd7e6ae2bc3a35 |
|
MD5 | 6d98f1a4eab7206b15d3e655d4ed8a4b |
|
BLAKE2b-256 | 524229a7596e76f05cea74a57374f7bbba1d46b0da230e6221489f146f24851b |