Detailed Description
A simple cache that stores its results in a dictionary.
Inheritance diagram for fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache:
Collaboration diagram for fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache:
Public Member Functions | |
| __init__ (self) | |
| get_cache_value (self, key) | |
| Get the result stored in the cache or None @type key : string. | |
| set_cache_value (self, key, value) | |
| Add data to the cache under a key @type key : string. | |
Public Attributes | |
| dict | cache = {} |
Constructor & Destructor Documentation
◆ __init__()
| fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.__init__ | ( | self | ) |
Member Function Documentation
◆ get_cache_value()
| fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.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.datakeyed_cache.DataKeyedCache.
◆ set_cache_value()
| fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.set_cache_value | ( | self, | |
| key, | |||
| value ) |
Add data to the cache under a key @type key : string.
- Parameters
-
key : The cache key to store data under @type value : mixed key : The value to save in the cache
Reimplemented from fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache.
Member Data Documentation
◆ cache
| dict fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.cache = {} |
