Backend¶
At the moment, the library provides only one class for interacting with Redis.
Warning
Support for redis cluster is not yet available.
- class redsession.backend.RedisBackend(redis)[source]¶
Bases:
BaseAsyncBackend
This class is used to connect and interact with Redis.
- Parameters:
redis (
redis.asyncio.Redis
) – Async Redis client.
Base class¶
If you can implement your own logic. Just use the base class.
- class redsession.backend.BaseAsyncBackend[source]¶
Bases:
ABC
Base class with asynchronous methods for implementing your own logic of interaction with server sessions