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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f11a374ddfb7faf16d523fe4839bbb90e0b32b7d19046ebca903e06ee4967eb |
|
MD5 | d2139af8a805e14a2db18bb2eaf2994e |
|
BLAKE2b-256 | 26745cf7cb51f6f44e6049c25f04e11d82aad63c8718acccaaeadf5a94971e80 |