(self, key, key_is_active=True)
return value
:param key: Cache key
        :param key_is_active: Whether you believe the key is being actively updated
            If not, then use the longer timeout for local memory cache as well.
:param key: Cache key
        :param key_is_active: Whether you believe the key is being actively updated
            If not, then use the longer timeout for local memory cache as well.
: param key : Cache key : param key_is_active : Whether you believe the key is being actively updated If not then use the longer timeout for local memory cache as well .
def get(self, key, key_is_active=True):
        """
        :param key: Cache key
        :param key_is_active: Whether you believe the key is being actively updated
            If not, then use the longer timeout for local memory cache as well.
        """
        local_timeout = self.memoized_timeout if key_is_active else self.timeout
        value = self.local_cache.get(key, default=None)
        if value is None:
            value = self.shared_cache.get(key, default=0)
            self.local_cache.set(key, value, timeout=local_timeout)
        assert value is not None
        return value
def get ( self , key , key_is_active = True ) : local_timeout = self . memoized_timeout if key_is_active else self . timeout value = self . local_cache . get ( key , default = None ) if value is None : value = self . shared_cache . get ( key , default = 0 ) self . local_cache . set ( key , value , timeout = local_timeout ) assert value is not None return value