\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache Class Reference

Detailed Description

A simple cache that stores its results in a dictionary.

Inheritance diagram for fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache:

[legend]

Collaboration diagram for fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache:

[legend]

Public Member Functions

def  __init__ (self)
def  get_cache_value (self, key)
Get the result stored in the cache or None @type key : string. More...
def  set_cache_value (self, key, value)
Add data to the cache under a key @type key : string. More...

Public Attributes

 cache

Constructor & Destructor Documentation

◆ __init__()

def fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.__init__ (   self )

Member Function Documentation

◆ get_cache_value()

def 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()

def 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

fiftyone_pipeline_engines.basic_dictionary_cache.BasicDictionaryCache.cache