cache-service-node-cache
Advanced tools
Comparing version 1.1.1 to 2.0.0
{ | ||
"name": "cache-service-node-cache", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"description": "A node-cache plugin for cache-service.", | ||
"main": "nodeCacheModule.js", | ||
"dependencies": { | ||
"node-cache": "2.1.1" | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"node-cache": ">=2.1.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "2.2.4", | ||
"expect": "1.6.0" | ||
"mocha": "5.x", | ||
"expect": "1.x", | ||
"node-cache": "4.x" | ||
}, | ||
@@ -13,0 +15,0 @@ "scripts": { |
@@ -17,3 +17,15 @@ # cache-service-node-cache | ||
Add to your package.json. `node-cache` is a peer dependency of `cache-service-node-cache`. This repo is currently tested against `node-cache#4.x`. | ||
```json | ||
... | ||
"dependencies": { | ||
"cache-service-node-cache": "2.x", | ||
"node-cache": "4.x" | ||
}, | ||
... | ||
``` | ||
Require and instantiate | ||
```javascript | ||
@@ -44,3 +56,3 @@ var csNodeCache = require('cache-service-node-cache'); | ||
The expiration to include when executing cache set commands. Can be overridden via `.set()`'s optional expiraiton param. | ||
The expiration to include when executing cache set commands. Can be overridden via `.set()`'s optional expiration param. | ||
@@ -105,3 +117,3 @@ * type: int | ||
## .set(key, value, [expiraiton], [refresh(key, cb)], [callback]) | ||
## .set(key, value, [expiration], [refresh(key, cb)], [callback]) | ||
@@ -108,0 +120,0 @@ > See the [Using Background Refresh](#using-background-refresh) section for more about the `refresh` and `callback` params. |
18918
199
3
6
+ Addedclone@2.1.2(transitive)
+ Addednode-cache@5.1.2(transitive)
- Removednode-cache@2.1.1
- Removedlodash@3.10.1(transitive)
- Removednode-cache@2.1.1(transitive)