def get_cache ( self , decorated_function , * args , * * kwargs ) : has_value = self . has ( decorated_function , * args , * * kwargs ) cached_value = None if has_value is True : cached_value = self . get_result ( decorated_function , * args , * * kwargs ) return WCacheStorage . CacheEntry ( has_value = has_value , cached_value = cached_value )
python cache method response
: meth : WCacheStorage . get_cache method implementation
def get_cache(self, decorated_function, *args, **kwargs):
		""" :meth:`WCacheStorage.get_cache` method implementation
		"""
		has_value = self.has(decorated_function, *args, **kwargs)
		cached_value = None
		if has_value is True:
			cached_value = self.get_result(decorated_function, *args, **kwargs)
		return WCacheStorage.CacheEntry(has_value=has_value, cached_value=cached_value)