In the docs for angular-cache, the author uses this nomenclature:
Cache#get(key[, options])
Return the item with the given key. options, if provided, must be an object.
If the cache is in passive mode, then options.onExpire can be a function that will be called with the key and value of the requested item if the requested item is expired, with the get call itself returning undefined.
The function is called simply by Cache.get(key)
. So what does the #
, and why is it used?