Comparing version 1.1.1 to 1.1.2
@@ -7,3 +7,3 @@ var redis = require('redis-url'); | ||
var client = redis.connect(config.url); | ||
var id = uuid.v1(); | ||
var id = config.id || uuid.v1(); | ||
cache.client = client; | ||
@@ -10,0 +10,0 @@ function prefix() { |
{ | ||
"name": "src", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Simple Redis Cache", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -50,2 +50,5 @@ var assert = require('assert'); | ||
}) | ||
it('should allow setting cache id', function() { | ||
assert.equal(src({id:'id-test'}).id(), 'id-test') | ||
}) | ||
it('should list the cache keys', function(done) { | ||
@@ -52,0 +55,0 @@ var keys = _.map([ |
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
5036
122