Skip to content

CosmoTech_Acceleration_Library.Modelops.core.common.redis_handler

RedisHandler

Class that handle Redis informations

Source code in CosmoTech_Acceleration_Library/Modelops/core/common/redis_handler.py
10
11
12
13
14
15
16
17
18
19
20
21
class RedisHandler:
    """
    Class that handle Redis informations
    """

    def __init__(self, host: str, port: int, name: str, password: str = None):
        logger.debug("RedisHandler init")
        self.host = host
        self.port = port
        self.name = name
        self.password = password
        self.r = redis.Redis(host=host, port=port, password=password, decode_responses=True)