BaseStore implementation using Redis as the underlying store.
RedisStore(
self,
*,
client: Any = None,
redis_url: Optional[str] = None,
client_kwargs: Optional[dict] = None,
ttl: Optional[int] = None,
namespace: Optional[str] = None
)| Name | Type | Description |
|---|---|---|
client | Any | Default: NoneA Redis connection instance |
redis_url | Optional[str] | Default: Noneredis url |
client_kwargs | Optional[dict] | Default: NoneKeyword arguments to pass to the Redis client |
ttl | Optional[int] | Default: Nonetime to expire keys in seconds if provided, if None keys will never expire |
namespace | Optional[str] | Default: Noneif provided, all keys will be prefixed with this namespace |