update README

This commit is contained in:
Randall Schmidt 2021-07-05 11:07:08 -04:00
parent ef5939f571
commit af1e977620
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ The get function should accept a key and return whatever value was set for that
The remove function should accept a key and remove the cached value associated with that key, if any. It is also safe for your caching delegate to remove values from the cache arbitrarily if desired (for example if you want to implement a TTL in the caching delegate).
Both functions can be async.
All three functions may be async.
For example, you could make and use your own simple memory cache like this:

View File

@ -1,6 +1,6 @@
{
"name": "node-fetch-cache",
"version": "2.0.2",
"version": "2.0.3",
"description": "node-fetch with a persistent cache.",
"main": "index.js",
"scripts": {