51Degrees Pipeline for Python

tests.test_cloudrequestengine_cache.AlwaysHitCache Class Reference

Detailed Description

Answers every lookup with the one entry it holds, so that a reader
reaches an entry the engine never stored itself.

Inheritance diagram for tests.test_cloudrequestengine_cache.AlwaysHitCache:

[legend]

Collaboration diagram for tests.test_cloudrequestengine_cache.AlwaysHitCache:

[legend]

Public Member Functions

 __init__ (self)
 get_cache_value (self, key)
 Get the result stored in the cache or None @type key : string.

Public Member Functions inherited from fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache

 __init__ (self)
 set_cache_value (self, key, value)
 Add data to the cache under a key @type key : string.

Public Attributes

 entry = None

Public Attributes inherited from fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache

dict cache = {}

Constructor & Destructor Documentation

◆ __init__()

tests.test_cloudrequestengine_cache.AlwaysHitCache.__init__ ( self)

Member Function Documentation

◆ get_cache_value()

tests.test_cloudrequestengine_cache.AlwaysHitCache.get_cache_value ( self,
key )

Get the result stored in the cache or None @type key : string.

Parameters
key: The cache key to lookup @rtype mixed
Returns
None or the data stored in the cache

Reimplemented from fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.

Member Data Documentation

◆ entry

tests.test_cloudrequestengine_cache.AlwaysHitCache.entry = None