Comparing version 0.4.1 to 0.5.0
@@ -22,4 +22,6 @@ 'use strict'; | ||
get(key) { | ||
if (this.isExpired(key)) { | ||
get(key, options) { | ||
options = options || {}; | ||
if (options.ignoreMaxAge !== true && this.isExpired(key)) { | ||
super.delete(key); | ||
@@ -26,0 +28,0 @@ return; |
{ | ||
"name": "cache-conf", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Simple cache config handling for your app or module", | ||
@@ -42,3 +42,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"conf": "^0.11.2", | ||
"conf": "^0.12.0", | ||
"pkg-up": "^1.0.0" | ||
@@ -45,0 +45,0 @@ }, |
@@ -49,2 +49,15 @@ # cache-conf [![Build Status](https://travis-ci.org/SamVerschueren/cache-conf.svg?branch=master)](https://travis-ci.org/SamVerschueren/cache-conf) | ||
#### get(key, [options]) | ||
Get an item. | ||
##### options | ||
###### ignoreMaxAge | ||
Type: `boolean`<br> | ||
Default: `false` | ||
Get the item for the `key` provided without taking the `maxAge` of the item into account. | ||
#### set(key, value, [options]) | ||
@@ -51,0 +64,0 @@ |
5486
64
97
+ Addedconf@0.12.0(transitive)
+ Addeddot-prop@4.2.1(transitive)
+ Addedenv-paths@1.0.0(transitive)
- Removedconf@0.11.2(transitive)
- Removeddot-prop@3.0.0(transitive)
- Removedenv-paths@0.3.1(transitive)
Updatedconf@^0.12.0