◆ match()
| 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
\r\n
A tracker is an instance of datakeyed cache which, if a result is found in the cache, calls an additional boolean match method.
| track (key)
The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function. More...
| |
| match (key, value)
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...
| |
| Tracker::match | ( | key, | |
| value | |||
| ) |
If object is found in cache, the match function is called.
| Tracker::track | ( | key | ) |
The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function.