def get_memcached_hosts():
    if not memcache:
        return None

    cache_info = settings.CACHES[DEFAULT_FORWARD_CACHE_ALIAS]
    backend = cache_info['BACKEND']
    locations = cache_info.get('LOCATION', [])

    if (not backend.startswith('django.core.cache.backends.memcached') or
            not locations):
        return []

    if not isinstance(locations, list):
        locations = [locations]

    return locations
Retrieve the value
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/cache_stats.py/get_memcached_hosts--crossover with--dataset/ETHPy150Open impactlab/eemeter/eemeter/meter/base.py/DataContainer.get_value