Changes between Version 1 and Version 2 of Ticket #33573, comment 5


Ignore:
Timestamp:
Mar 14, 2022, 9:32:02 AM (3 years ago)
Author:
Christopher Bailey

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33573, comment 5

    v1 v2  
    33I kind of started to implement it, but then realized it was likely going to be a bigger issue then I though. But there is already an abstract RedisClient class that is a wrapper around the base `redis.Redis` class. It maintains connection polls and handles all of the core commands. It has methods for `get`, `set`, `add`, `touch`, `incr` that just calls `get_client` and makes a new client using the existing connection pull any time it is called.
    44
    5 For Async we can just add something like `get_async_client` and follow the same pattern within the class. I believe the connection poll should be able to be reused between the sync/async clients.
     5For Async we can just add something like `get_async_client` and follow the same pattern within the class. I believe the connection poll should be able to be reused between the sync/async clients, but I am not an expert on Redis.
Back to Top