core.cache.redis ================ .. py:module:: core.cache.redis Attributes ---------- .. autoapisummary:: core.cache.redis.keys core.cache.redis.flush Classes ------- .. autoapisummary:: core.cache.redis.RedisCacheRegion Functions --------- .. autoapisummary:: core.cache.redis.msgpack_deserialize core.cache.redis.get core.cache.redis.get_pool Module Contents --------------- .. py:function:: msgpack_deserialize(value: bytes | dogpile.cache.api.NoValue) -> Any .. py:class:: RedisCacheRegion(namespace: str, expiration_time: float, redis_url: str) Bases: :py:obj:`dogpile.cache.CacheRegion` A slightly more specific CacheRegion that will be configured to a single non-clustered Redis backend with name-mangling based on a given namespace as well as a couple of additional convenience methods specific to Redis. It will use dill to serialize/deserialize values. .. py:attribute:: namespace .. py:method:: key_mangler(key: str) -> bytes .. py:method:: keys() -> list[str] .. py:method:: flush() -> int .. py:data:: keys .. py:data:: flush .. py:function:: get(namespace: str, expiration_time: float, redis_url: str) -> RedisCacheRegion .. py:function:: get_pool(redis_url: str) -> redis.ConnectionPool