def __init__(self, cache, value_to_switch):
self.cache = cache<EOL>self.value_to_switch = value_to_switch<EOL>self.previous_value = None<EOL>
:type cache: dict
:param cache: A dict to store values in
:type value_to_switch: str
:param value_to_switch:
    The key in cache to switch based on different contexts