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.
 put (cachekey, value)
 Add an element to the cache.

Member Function Documentation

◆ get()

DataKeyedCache::get ( cachekey)
inline

Get data out of the cache.

Parameters
{*}cachekey key to lookup in the cache

◆ put()

DataKeyedCache::put ( cachekey,
value )
inline

Add an element to the cache.

Parameters
{*}cachekey key for the cache entry
{any}value value for the cache entry