faust.web.cache.backends.redis
¶
Redis cache backend.
-
class
faust.web.cache.backends.redis.
RedisScheme
[source]¶ Types of Redis configurations.
-
SINGLE_NODE
= 'redis'¶
-
CLUSTER
= 'rediscluster'¶
-
-
class
faust.web.cache.backends.redis.
CacheBackend
(app: faust.types.app.AppT, url: Union[yarl.URL, str], *, connect_timeout: float = None, stream_timeout: float = None, max_connections: int = None, max_connections_per_node: int = None, **kwargs: Any) → None[source]¶ Backend for cache operations using Redis.
-
operational_errors
= (<class 'OSError'>, <class 'OSError'>, <class 'OSError'>, <class 'aredis.exceptions.ConnectionError'>, <class 'aredis.exceptions.TimeoutError'>)¶
-
invalidating_errors
= (<class 'aredis.exceptions.DataError'>, <class 'aredis.exceptions.InvalidResponse'>, <class 'aredis.exceptions.ResponseError'>)¶
-
irrecoverable_errors
= (<class 'aredis.exceptions.AuthenticationError'>,)¶
-