Skip to content

Commit

Permalink
Update readme to show default ttl option
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Dec 26, 2016
1 parent bcfaf51 commit 7a8fcab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -64,6 +64,7 @@ const onionoo = new Onionoo({
],
cache: {
store: 'memory',
ttl: 18000,
max: 500
}
});
Expand Down Expand Up @@ -121,7 +122,7 @@ Array of endpoints to be returned as methods on the `Onionoo` instance.
##### options.cache

Type: `object`, `boolean`<br>
Default: `{ store: 'memory', max: 500 }`
Default: `{ store: 'memory', ttl: 18000, max: 500 }`

Options object to be merged with default options and passed to [`node-cache-manager`](https://github.com/BryanDonovan/node-cache-manager). Alternatively, if set to false, caching will be disabled.

Expand Down

0 comments on commit 7a8fcab

Please sign in to comment.