\r\n

51Degrees Pipeline Node.js  4.4

51Degrees Pipeline for Node.js

Tracker Class Reference

Detailed Description

A tracker is an instance of datakeyed cache which, if a result is found in the cache, calls an additional boolean match method.

Inheritance diagram for Tracker:

[legend]

Collaboration diagram for Tracker:

[legend]

Public Member Functions

 track (key)
The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function. More...
 match (result)
If object is found in cache, the match function is called. More...

Public Member Functions inherited from DataKeyedCache

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

Member Function Documentation

◆ match()

Tracker::match (   result )
inline

If object is found in cache, the match function is called.

Parameters
{object} - result of the track function
Returns
{Boolen} whether a match has been made

◆ track()

Tracker::track (   key )
inline

The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function.

Parameters
{mixed} - key cache key to run through tracker
Returns
{boolean} result of tracking