atlassian-connect-express-redis
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "atlassian-connect-express-redis", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Redis adapter for Atlassian Connect Express", | ||
@@ -5,0 +5,0 @@ "main": "redis.js", |
@@ -12,3 +12,4 @@ # Atlassian Connect Express Redis Adapter | ||
"store": { | ||
"adapter": "redis" | ||
"adapter": "redis", | ||
"url": "redis://user:password@localhost:6379" | ||
} | ||
@@ -15,0 +16,0 @@ |
@@ -11,4 +11,8 @@ var url = require('url'); | ||
var connectUrl = url.parse(opts.url); | ||
self.client = redis.createClient(connectUrl.port, connectUrl.hostmane, { | ||
auth_pass: connectUrl.auth | ||
var pwd = null; | ||
if(connectUrl.auth) { | ||
pwd = connectUrl.auth.split(':')[1]; | ||
} | ||
self.client = redis.createClient(connectUrl.port, connectUrl.hostname, { | ||
auth_pass: pwd | ||
}); | ||
@@ -15,0 +19,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
3412
63
24