A tracker is an instance of datakeyed cache which, if a result is found in the cache, calls an additional boolean match method.
| Tracker::match |
( |
| key, |
|
|
| value ) |
|
inline |
If object is found in cache, the match function is called.
- Parameters
-
| {string} | key key of piece of evidence |
| {*} | value value of piece of evidence |
- Returns
- {boolean} whether put in cache
The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function.
- Parameters
-
| {*} | key cache key to run through tracker |
- Returns
- {boolean} result of tracking