\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

fiftyone_pipeline_engines.lru_cache.LRUEngineCache Class Reference

Detailed Description

An instance of DataKeyed cache using a least recently used (LRU) method.

Inheritance diagram for fiftyone_pipeline_engines.lru_cache.LRUEngineCache:

[legend]

Collaboration diagram for fiftyone_pipeline_engines.lru_cache.LRUEngineCache:

[legend]

Public Member Functions

def  __init__ (self, size=1000)
Constructor for LRUCache @type size: int. More...
def  get_cache_value (self, cache_key)
Get data from the cache @type key : string. More...
def  set_cache_value (self, key, value)
Place data in the cache @type key : string. More...

Public Attributes

 cache

Constructor & Destructor Documentation

◆ __init__()

def fiftyone_pipeline_engines.lru_cache.LRUEngineCache.__init__ (   self,
  size = 1000  
)

Constructor for LRUCache @type size: int.

Parameters
size - maximum entries in the cache

Member Function Documentation

◆ get_cache_value()

def fiftyone_pipeline_engines.lru_cache.LRUEngineCache.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()

def fiftyone_pipeline_engines.lru_cache.LRUEngineCache.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

fiftyone_pipeline_engines.lru_cache.LRUEngineCache.cache