Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e68c02c

Browse files
marcenucvojtajina
authored andcommitted
docs($cacheFactory): Correct method's description
1 parent 25d207c commit e68c02c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/service/cacheFactory.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
*
1414
* @returns {object} Newly created cache object with the following set of methods:
1515
*
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.
2120
* - `{void}` `removeAll() — Removes all cached values.
21+
* - `{void}` `destroy() — Removes references to this cache from $cacheFactory.
2222
*
2323
*/
2424
function $CacheFactoryProvider() {

0 commit comments

Comments
 (0)