update readme

This commit is contained in:
Randall Schmidt 2021-06-10 13:50:02 -04:00
parent ee8418b15c
commit ce5a142084

@ -129,7 +129,7 @@ Supported options:
```js ```js
{ {
ttl: 1000, // Time to live. How long (in ms) responses remain cached before being automatically ejected. If undefined, objects are never automatically ejected from the cache. ttl: 1000, // Time to live. How long (in ms) responses remain cached before being automatically ejected. If undefined, responses are never automatically ejected from the cache.
global: true, // If true, uses the global cache, which is shared together by all MemoryCaches that specify this option. If false, every MemoryCache uses a separate cache. global: true, // If true, uses the global cache, which is shared together by all MemoryCaches that specify this option. If false, every MemoryCache uses a separate cache.
} }
``` ```
@ -147,7 +147,7 @@ const fetch = createNodeFetchCache(new MemoryCache(options));
```js ```js
{ {
ttl: 1000, // Time to live. How long (in ms) responses remain cached before being automatically ejected. If undefined, objects are never automatically ejected from the cache. ttl: 1000, // Time to live. How long (in ms) responses remain cached before being automatically ejected. If undefined, responses are never automatically ejected from the cache.
} }
``` ```