Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

memcache-client-memoizer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memcache-client-memoizer - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

index.js

@@ -22,5 +22,8 @@ const isFunction = require('lodash.isfunction')

return fn(...args)
.then((result) => client.set(key, result, setOptions).then(() => Promise.resolve(result)))
.then((result) => {
client.set(key, result, setOptions)
return Promise.resolve(result)
})
})
}
}

14

package.json
{
"name": "memcache-client-memoizer",
"version": "0.0.3",
"version": "0.0.4",
"description": "Memoizes promise-returning functions via memcache-client",

@@ -24,10 +24,10 @@ "main": "index.js",

"dependencies": {
"lodash.isfunction": "^3.0.9"
"lodash.isfunction": "3.0.9"
},
"devDependencies": {
"jest": "^22.3.0",
"memcache-client": "^0.10.0",
"snazzy": "^7.0.0",
"standard": "^10.0.3",
"uuid": "^3.2.1"
"jest": "22.3.0",
"memcache-client": "0.10.0",
"snazzy": "7.0.0",
"standard": "10.0.3",
"uuid": "3.2.1"
},

@@ -34,0 +34,0 @@ "standard": {

@@ -32,3 +32,3 @@ ## memcache-client-memoizer

### Note:
Rejected promises and callbacks called with an `err` argument are not memoized, since that's a pretty bad idea :)
Rejected promises are not memoized - since that's probably not what you want :)

@@ -35,0 +35,0 @@ ### Example:

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