Retrieves named data stored in the Cache object.
the key of the data to be retrieved
Retrieve information regarding a particular Cache.
the id of the cache instance
the number of entries kept in the cache instance
Inserts a named entry into the Cache object to be retrieved later, and incrementing the size of the cache if the key was not already present in the cache. If behaving like an LRU cache, it will also remove stale entries from the set.
It will not insert undefined values into the cache.
the key under which the cached data is stored.
the value to store alongside the key. If it is undefined, the key will not be stored.
Removes an entry from the Cache object.
the key of the entry to be removed
Clears the cache object of any entries.
Generated using TypeDoc
Destroys the Cache object entirely, removing it from the $cacheFactory set.