\r\n

51Degrees Pipeline Node.js  4.1Newer Version 4.2

51Degrees Pipeline for Node.js

DataKeyedCache Class Reference

Detailed Description

A simple cache getter that takes a cache key and returns an element if it is found in the cache.

Examples
caching.js.

Inheritance diagram for DataKeyedCache:

[legend]

Public Member Functions

 get (cachekey)
Get data out of the cache. More...
 put (cachekey, value)
Add an element to the cache. More...

Member Function Documentation

◆ get()

DataKeyedCache::get (   cachekey )
inline

Get data out of the cache.

Parameters
{Mixed} - cachekey key to lookup in the cache

◆ put()

DataKeyedCache::put (   cachekey,
  value  
)
inline

Add an element to the cache.

Parameters
{Mixed} - cachekey key for the cache entry
{any} - value value for the cache entry