atlassian-connect-express-redis
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "atlassian-connect-express-redis", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Redis adapter for Atlassian Connect Express", | ||
@@ -8,2 +8,3 @@ "main": "redis.js", | ||
"redis": "~0.10.0", | ||
"hiredis": "~0.1.0", | ||
"rsvp": "~3.0.3" | ||
@@ -10,0 +11,0 @@ }, |
10
redis.js
@@ -0,1 +1,2 @@ | ||
var url = require('url'); | ||
var RSVP = require('rsvp'); | ||
@@ -5,5 +6,10 @@ var redis = require("redis"); | ||
function Redis(logger, opts) { | ||
opts = opts || {}; | ||
opts = opts || { | ||
url: 'redis://localhost:6379' | ||
}; | ||
var self = this; | ||
self.client = redis.createClient(); | ||
var connectUrl = url.parse(opts.url); | ||
self.client = redis.createClient(connectUrl.port, connectUrl.hostmane, { | ||
auth_pass: connectUrl.auth | ||
}); | ||
} | ||
@@ -10,0 +16,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
3274
4
59
3
+ Addedhiredis@~0.1.0
+ Addedbindings@1.5.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedhiredis@0.1.17(transitive)
+ Addednan@1.1.2(transitive)