def get_memcached_hosts():
 if (not memcache):
  return None
 cache_info = settings.CACHES[DEFAULT_FORWARD_CACHE_ALIAS]
 backend = cache_info[u'BACKEND']
 locations = cache_info.get(u'LOCATION', [])
 if ((not backend.startswith(u'django.core.cache.backends.memcached')) or (not locations)):
  return []
 if (not isinstance(locations, list)):
  locations = [locations]
 return locations

def get_memcached_hosts ( ) : if ( not memcache ) : return None cache_info = settings . CACHES [ DEFAULT_FORWARD_CACHE_ALIAS ] backend = cache_info [ u'BACKEND' ] locations = cache_info . get ( u'LOCATION' , [ ] ) if ( ( not backend . startswith ( u'django.core.cache.backends.memcached' ) ) or ( not locations ) ) : return [ ] if ( not isinstance ( locations , list ) ) : locations = [ locations ] return locations
return the hosts currently configured for memcached .