Detailed Description
A data keyed cache is the base class for caches used in the pipeline It does nothing on its own and should be extended by a specific cache.
Inheritance diagram for fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache:
Collaboration diagram for fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache:
Public Member Functions | |
| get_cache_value (self, cachekey) | |
| Get data from the cache @type key : string. | |
| set_cache_value (self, cachekey, value) | |
| Place data in the cache @type key : string. | |
Member Function Documentation
◆ get_cache_value()
| fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache.get_cache_value | ( | self, | |
| cachekey ) |
Get data from the cache @type key : string.
- Parameters
-
key : The cache key to lookup @type value : mixed key : None , or the stored data
Reimplemented in fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache, fiftyone_pipeline_engines.lru_cache.LRUEngineCache, fiftyone_pipeline_engines_fiftyone.share_usage_tracker.ShareUsageTracker, and tests.test_engines.TestCache.
◆ set_cache_value()
| fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache.set_cache_value | ( | self, | |
| cachekey, | |||
| value ) |
Place data in the cache @type key : string.
- Parameters
-
key : The cache key to store data under @type value : mixed key : The value to save in the cache
Reimplemented in fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache, fiftyone_pipeline_engines.lru_cache.LRUEngineCache, fiftyone_pipeline_engines_fiftyone.share_usage_tracker.ShareUsageTracker, and tests.test_engines.TestCache.
