2022-04-28 16:09:23 -06:00
|
|
|
from redis import StrictRedis
|
|
|
|
|
|
|
|
|
|
from py.scwrypts import getenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RedisClient(StrictRedis):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
super().__init__(
|
|
|
|
|
host = getenv('REDIS_HOST'),
|
|
|
|
|
port = getenv('REDIS_PORT'),
|
2022-08-02 19:08:33 -06:00
|
|
|
password = getenv('REDIS_AUTH', required=False),
|
2022-04-28 16:09:23 -06:00
|
|
|
decode_responses = True,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
Client = RedisClient()
|