def make_indico_redis_cache(app, config, args, kwargs):
    from redis import from_url as redis_from_url
    key_prefix = config.get('CACHE_KEY_PREFIX')
    if key_prefix:
        kwargs['key_prefix'] = key_prefix
    kwargs['host'] = redis_from_url(config['CACHE_REDIS_URL'], socket_timeout=1)
    return IndicoRedisCache(*args, **kwargs)
def make_indico_redis_cache(app, config, args, kwargs):
    from redis import from_url as redis_from_url
    key_prefix = config.get('CACHE_KEY_PREFIX')
    if key_prefix:
        kwargs['key_prefix'] = key_prefix
    kwargs['host'] = redis_from_url(config['CACHE_REDIS_URL'], socket_timeout=1)
    return IndicoRedisCache(*args, **kwargs)