Skip to content

Commit

Permalink
Add read write clients as class variables (#160)
Browse files Browse the repository at this point in the history
* update tests

* split client into separate read and write

* add chage log

* add read and write clients as class variables in redis cache
  • Loading branch information
northernSage authored Jun 26, 2022
1 parent abd2d55 commit 3a70768
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cachelib/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class RedisCache(BaseCache):
Any additional keyword arguments will be passed to ``redis.Redis``.
"""

_read_client = None
_write_client = None
serializer = RedisSerializer()

def __init__(
Expand Down

0 comments on commit 3a70768

Please sign in to comment.