Changes between Initial Version and Version 1 of Ticket #33681


Ignore:
Timestamp:
May 5, 2022, 10:03:01 AM (3 years ago)
Author:
Ben Picolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33681 – Description

    initial v1  
    77Right now, though, these OPTIONS are passed to the [https://github.com/django/django/blob/7119f40c9881666b6f9b5cf7df09ee1d21cc8344/django/core/cache/backends/redis.py#L30 first-party RedisCacheClient object], so you can't pass in options expected by the redis connection pool [https://github.com/redis/redis-py/blob/master/redis/connection.py#L1283 link].
    88
    9 One could do a variety of subclassing to make this work, but there's quite a few layers of indirection here, so it's hard to identify exactly what one should subclass in order to get objects to the connection class appropriately.
     9One could do a variety of subclassing to make this work, but there's quite a few layers of indirection here, so it's hard to identify exactly what one should subclass in order to get arguments to the connection class appropriately.
    1010
    1111(For now, my workaround is take advantage of the from_url behavior where the connection class [https://github.com/redis/redis-py/blob/master/redis/connection.py#L1274 pulls arguments out of the connection query string], but this isn't straightforward and feels brittle).
Back to Top