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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f18316de98f3cbc01d9d05774ae6a215a6e6c7001e2798cf1565f047a6dc6a |
|
MD5 | 8fc808c1bc62067f4e524434967f3241 |
|
BLAKE2b-256 | 27d1aefe9dc8a5ae373c598bd9f889d7acd3ce2de53e9e22e113c00acfa67cc9 |