New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cache-service-node-cache

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-service-node-cache - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

12

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc