'Returns and caches whether the given waffle switch is enabled.'

def is_enabled(self, switch_name):

    namespaced_switch_name = self._namespaced_name(switch_name)
    value = self._cached_switches.get(namespaced_switch_name)
    if (value is None):
        value = switch_is_active(namespaced_switch_name)
        self._cached_switches[namespaced_switch_name] = value
    return value
