summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lru-cache/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lru-cache/README.md')
-rw-r--r--deps/npm/node_modules/lru-cache/README.md14
1 files changed, 2 insertions, 12 deletions
diff --git a/deps/npm/node_modules/lru-cache/README.md b/deps/npm/node_modules/lru-cache/README.md
index 3fd6d0bcae..a8bba688f7 100644
--- a/deps/npm/node_modules/lru-cache/README.md
+++ b/deps/npm/node_modules/lru-cache/README.md
@@ -36,7 +36,7 @@ away.
* `length` Function that is used to calculate the length of stored
items. If you're storing strings or buffers, then you probably want
to do something like `function(n){return n.length}`. The default is
- `function(n){return 1}`, which is fine if you want to store `max`
+ `function(n){return 1}`, which is fine if you want to store `n`
like-sized things.
* `dispose` Function that is called on items when they are dropped
from the cache. This can be handy if you want to close file
@@ -102,18 +102,8 @@ away.
Return total length of objects in cache taking into account
`length` options function.
-* `itemCount`
+* `itemCount()`
Return total quantity of objects currently in cache. Note, that
`stale` (see options) items are returned as part of this item
count.
-
-* `dump()`
-
- Return an array of the cache entries ready for serialization and usage
- with 'destinationCache.load(arr)`.
-
-* `load(cacheEntriesArray)`
-
- Loads another cache entries array, obtained with `sourceCache.dump()`,
- into the cache. The destination cache is reset before loading new entries