51Degrees Pipeline Python  4.1

51Degrees Pipeline for Python
  • pipeline-python
  • fiftyone_pipeline_engines
  • fiftyone_pipeline_engines
  • datakeyed_cache
  • DataKeyedCache

pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache Class Reference

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 pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache:

[legend]

Collaboration diagram for pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache:

[legend]

Public Member Functions

def  get_cache_value (self, cachekey)
Get data from the cache @type key : string. More...
def  set_cache_value (self, cachekey, value)
Place data in the cache @type key : string. More...

Member Function Documentation

◆ get_cache_value()

def pipeline-python.fiftyone_pipeline_engines.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 pipeline-python.fiftyone_pipeline_engines.tests.test_engines.TestCache, and pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.

◆ set_cache_value()

def pipeline-python.fiftyone_pipeline_engines.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 pipeline-python.fiftyone_pipeline_engines.tests.test_engines.TestCache, and pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.