Changes between Version 1 and Version 2 of Ticket #34764
- Timestamp:
- Aug 4, 2023, 6:12:53 AM (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34764 – Description
v1 v2 1 1 The RedisCacheClient is explicitly initialized with the standard Redis client from the `redis-py` library: 2 ``` 2 3 {{{ 3 4 import redis 5 4 6 self._lib = redis 5 7 ... 6 8 self._client = self._lib.Redis 7 ``` 9 }}} 10 8 11 To 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. 9 12 10 13 Relevant piece of code: 11 14 https://github.com/django/django/blob/main/django/core/cache/backends/redis.py#L39 15 16 Redis class that I propose to support: 17 https://github.com/redis/redis-py/blob/master/redis/cluster.py#L431