Changes between Version 1 and Version 2 of Ticket #34764


Ignore:
Timestamp:
Aug 4, 2023, 6:12:53 AM (10 months ago)
Author:
Vsevolod Timchenko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34764 – Description

    v1 v2  
    11The RedisCacheClient is explicitly initialized with the standard Redis client from the `redis-py` library:
    2 ```
     2
     3{{{
    34        import redis
     5
    46        self._lib = redis
    57        ...
    68        self._client = self._lib.Redis
    7 ```
     9}}}
     10
    811To work with clusterized deployments another class, `RedisCluster`, has to be used. It offers support for cluster features and peculiarities, i.e. smart retries and refreshes on `MOVED` errors as well as node discovery.
    912
    1013Relevant piece of code:
    1114https://github.com/django/django/blob/main/django/core/cache/backends/redis.py#L39
     15
     16Redis class that I propose to support:
     17https://github.com/redis/redis-py/blob/master/redis/cluster.py#L431
Back to Top