def set_value(cache, key, value):
    with cache as redis_connection:
        return redis_connection.set(key, value)
Set a value by key.
dataset/ETHPy150Open refinery29/chassis/chassis/services/cache.py/set_value