Set a value by key.

    Arguments:
        cache:
            instance of Cache

        key:
            'user:342:username',

def set_value(cache, key, value):
    """Set a value by key.

    Arguments:
        cache:
            instance of Cache

        key:
            'user:342:username',
    """
    with cache as redis_connection:
        return redis_connection.set(key, value)