51Degrees Pipeline for Python

tests.test_engines.TestCache Class Reference

Inheritance diagram for tests.test_engines.TestCache:

[legend]

Collaboration diagram for tests.test_engines.TestCache:

[legend]

Public Member Functions

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

Public Attributes

dict cache = {}
int cacheHits = 0

Constructor & Destructor Documentation

◆ __init__()

tests.test_engines.TestCache.__init__ ( self)

Member Function Documentation

◆ get_cache_value()

tests.test_engines.TestCache.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 from fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache.

◆ set_cache_value()

tests.test_engines.TestCache.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 from fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache.

Member Data Documentation

◆ cache

dict tests.test_engines.TestCache.cache = {}

◆ cacheHits

int tests.test_engines.TestCache.cacheHits = 0