Skip to content

Commit

Permalink
Mention quick-lru in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 30, 2017
1 parent 01a5137 commit d436564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -104,7 +104,7 @@ You could for example change it to only cache on the first argument `x => JSON.s
Type: `Object`<br>
Default: `new Map()`

Use a different cache storage. Must implement the following methods: `.has(key)`, `.get(key)`, `.set(key, value)`, and optionally `.clear()`. You could for example use a `WeakMap` instead.
Use a different cache storage. Must implement the following methods: `.has(key)`, `.get(key)`, `.set(key, value)`, and optionally `.clear()`. You could for example use a `WeakMap` instead or [`quick-lru`](https://github.com/sindresorhus/quick-lru) for a LRU cache.

### mem.clear(fn)

Expand Down

0 comments on commit d436564

Please sign in to comment.