◆ match()
Tracker::match | ( | result | ) |
inline
If object is found in cache, the match function is called.
- Parameters
-
- {object} - result of the track function
- Returns
- {boolean} whether a match has been made
\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 (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...
|
Tracker::match | ( | result | ) |
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.