def get_data_redis(key: str) -> Any:
    data = redis_client.get(key)
    return data
Beispiel #2
0
def get_incremental_id():
    redis_client.incr(CONSTANTS.REDIS_INCREMENTS)
    incr = redis_client.get(CONSTANTS.REDIS_INCREMENTS)
    return incr
def load_data_redis(key: str) -> Dict[str, Any]:
    data_dict = json.loads(redis_client.get(key))
    return data_dict