Comparing version 1.1.0 to 1.1.1
@@ -39,3 +39,3 @@ var redis = require('redis-url'); | ||
} | ||
cache.keys = function(cb) { | ||
cache.keys = function(cb, opts) { | ||
client.keys(prefix() + '*', function(err, keys) { | ||
@@ -45,3 +45,3 @@ if (err) { | ||
} | ||
cb(null, _.map(keys, decompose)) | ||
cb(null, (opts && opts.raw) ? keys : _.map(keys, decompose)) | ||
}) | ||
@@ -48,0 +48,0 @@ } |
{ | ||
"name": "src", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Simple Redis Cache", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -61,3 +61,9 @@ var assert = require('assert'); | ||
}) | ||
done() | ||
cache.keys(function(er, ks) { | ||
var raws = _.map(keys, function(p) { return cache.id() + ':' + p }) | ||
_.each(raws, function(k) { | ||
assert.ok(ks.indexOf(k) !== -1) | ||
}) | ||
done() | ||
}, { raw: true }) | ||
}); | ||
@@ -64,0 +70,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
4913
119