

def set_cache(interval, bandwidth):
    global redis_conn, exp_period
    if (redis_conn is None):
        logger.error('Failed to find a redis connection.')
        return
    key = cache_key('{0}'.format(bandwidth))
    redis_conn.setex(key, exp_time, bandwidth)
    logger.info('Saved in Redis: key: {0} bandwidth: {1}'.format(key, bandwidth))

dataset/ETHPy150Open docker/docker-registry/scripts/bandwidth_parser.py set_cache/VarMisuse@44/65 `interval`->`bandwidth`