File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 13
13
*
14
14
* @returns {object } Newly created cache object with the following set of methods:
15
15
*
16
- * - `{string}` `id()` — Returns id or name of the cache.
17
- * - `{number}` `size()` — Returns number of items currently in the cache
18
- * - `{void}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache
19
- * - `{(*}} `get({string} key) — Returns cached value for `key` or undefined for cache miss.
20
- * - `{void}` `remove{string} key) — Removes a key-value pair from the cache.
16
+ * - `{object}` `info()` — Returns id, size, and options of cache.
17
+ * - `{void}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache.
18
+ * - `{{*}} `get({string} key) — Returns cached value for `key` or undefined for cache miss.
19
+ * - `{void}` `remove({string} key) — Removes a key-value pair from the cache.
21
20
* - `{void}` `removeAll() — Removes all cached values.
21
+ * - `{void}` `destroy() — Removes references to this cache from $cacheFactory.
22
22
*
23
23
*/
24
24
function $CacheFactoryProvider ( ) {
You can’t perform that action at this time.
0 commit comments