Browse Source

Set default cache ttl to 5 hours

pull/15/head
Luke Childs 8 years ago
parent
commit
ad21023695
  1. 1
      src/index.js

1
src/index.js

@ -24,6 +24,7 @@ class Onionoo {
if (options.cache !== false) {
this.options.cache = cacheManager.caching(Object.assign({
store: 'memory',
ttl: 18000, // 5 hours
max: 500
}, options.cache));
}

Loading…
Cancel
Save