<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)