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