aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Nuccio2012-02-13 12:19:10 +0100
committerVojta Jina2012-02-29 15:48:37 -0800
commite68c02c5372a7234cff4113b17ba9b0d30d9321a (patch)
treeecbabd1ae00dbcea0f34646f2b5636b66f716140
parent25d207c48c648bcf09ebdf09f39277850017c228 (diff)
downloadangular.js-e68c02c5372a7234cff4113b17ba9b0d30d9321a.tar.bz2
docs($cacheFactory): Correct method's description
-rw-r--r--src/service/cacheFactory.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service/cacheFactory.js b/src/service/cacheFactory.js
index 2d4c87cf..82c939cc 100644
--- a/src/service/cacheFactory.js
+++ b/src/service/cacheFactory.js
@@ -13,12 +13,12 @@
*
* @returns {object} Newly created cache object with the following set of methods:
*
- * - `{string}` `id()` — Returns id or name of the cache.
- * - `{number}` `size()` — Returns number of items currently in the cache
- * - `{void}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache
- * - `{(*}} `get({string} key) — Returns cached value for `key` or undefined for cache miss.
- * - `{void}` `remove{string} key) — Removes a key-value pair from the cache.
+ * - `{object}` `info()` — Returns id, size, and options of cache.
+ * - `{void}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache.
+ * - `{{*}} `get({string} key) — Returns cached value for `key` or undefined for cache miss.
+ * - `{void}` `remove({string} key) — Removes a key-value pair from the cache.
* - `{void}` `removeAll() — Removes all cached values.
+ * - `{void}` `destroy() — Removes references to this cache from $cacheFactory.
*
*/
function $CacheFactoryProvider() {