diff --git a/lib/index.js b/lib/index.js index 26a01e6..b9aa075 100644 --- a/lib/index.js +++ b/lib/index.js @@ -108,7 +108,7 @@ export default class Cacheman { } prefix = [prefix, name || 'cache', ''].join(delimiter); - this.options = { ...options, Promise: _Promise, delimiter, prefix, ttl, count: 1000 }; + this.options = { count: 1000, ...options, Promise: _Promise, delimiter, prefix, ttl }; this._prefix = prefix; this._ttl = ttl; this._fns = [];