Returns configured CACHES dictionary from CACHE_URL

def config(name='CACHE_URL', default='locmem://'):
    """Returns configured CACHES dictionary from CACHE_URL"""
    config = {}

    s = env(name, default)

    if s:
        config = parse_cache_url(s)

    return config