secure-store-redis
Advanced tools
Comparing version 1.2.0 to 1.3.0
13
index.js
@@ -107,2 +107,15 @@ var RCP = require('redis-connection-pool'), | ||
SecureStore.prototype.delete = function (postfix, key, cb) { | ||
if (typeof cb !== 'function') { | ||
assert(typeof key === 'function', 'must specify a callback'); | ||
cb = key; | ||
key = postfix; | ||
postfix = ''; | ||
} else { | ||
postfix = ':' + postfix; | ||
} | ||
assert(typeof key === 'string', 'no hash key specified'); | ||
this.pool.hdel(this.namespace + postfix, shasum(key), cb); | ||
}; | ||
module.exports = SecureStore; |
{ | ||
"name": "secure-store-redis ", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A simple wrapper to encrypt and decrypt data stored in redis", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -38,2 +38,6 @@ # secure-store-redis | ||
store.delete('quote', function (err, reply) { | ||
// err: null | ||
// reply: 1 | ||
}); | ||
@@ -40,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10688
7
248
58