redis-sessions
Advanced tools
Comparing version 1.0.6 to 1.1.0
# CHANGELOG | ||
## 1.1.0 | ||
* Travis tests for Node 4 and 6. Should fix Travis build errors. | ||
* Added `ping` method. | ||
## 1.0.6 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.10.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
@@ -43,2 +43,3 @@ /* | ||
this.quit = bind(this.quit, this); | ||
this.ping = bind(this.ping, this); | ||
this.killsoid = bind(this.killsoid, this); | ||
@@ -344,2 +345,6 @@ this.killall = bind(this.killall, this); | ||
RedisSessions.prototype.ping = function(cb) { | ||
this.redis.ping(cb); | ||
}; | ||
RedisSessions.prototype.quit = function() { | ||
@@ -346,0 +351,0 @@ this.redis.quit(); |
{ | ||
"name": "redis-sessions", | ||
"description": "An advanced session store for Redis", | ||
"version": "1.0.6", | ||
"license": "MIT", | ||
"author": "P. Liess <smrchy+npm@gmail.com>", | ||
"engines": { | ||
"node": "> 0.10.20" | ||
}, | ||
"scripts": { | ||
"test": "mocha ./test/test.js" | ||
}, | ||
"dependencies": { | ||
"redis": "^2.6.2", | ||
"lodash": "^4.x" | ||
}, | ||
"optionalDependencies": { | ||
"hiredis": "0.4.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "3.0.2 ", | ||
"should": "11.1.0", | ||
"async": "*" | ||
}, | ||
"keywords": [ | ||
"sessions", | ||
"redis", | ||
"session", | ||
"users", | ||
"activity" | ||
], | ||
"repository" : { | ||
"type": "git", | ||
"url": "http://github.com/smrchy/redis-sessions.git" | ||
} | ||
"name": "redis-sessions", | ||
"description": "An advanced session store for Redis", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
"author": "P. Liess <smrchy+npm@gmail.com>", | ||
"engines": { | ||
"node": "> 0.10.20" | ||
}, | ||
"scripts": { | ||
"test": "mocha ./test/test.js" | ||
}, | ||
"dependencies": { | ||
"redis": "^2.x", | ||
"lodash": "^4.x" | ||
}, | ||
"optionalDependencies": { | ||
"hiredis": "^0.5.x" | ||
}, | ||
"devDependencies": { | ||
"mocha": "3.0.2 ", | ||
"should": "11.1.0", | ||
"async": "*" | ||
}, | ||
"keywords": [ | ||
"sessions", | ||
"redis", | ||
"session", | ||
"users", | ||
"activity" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/smrchy/redis-sessions.git" | ||
} | ||
} |
@@ -346,2 +346,20 @@ # Redis Sessions | ||
### Ping | ||
Ping the redis server | ||
```javascript | ||
rs.ping(function(err, resp) { | ||
/* | ||
resp contains the result: | ||
"PONG" | ||
*/ | ||
}); | ||
``` | ||
## CHANGELOG | ||
@@ -348,0 +366,0 @@ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.10.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
var RedisSessions, _, async, should; | ||
@@ -34,2 +34,8 @@ | ||
describe('GET: Part 1', function() { | ||
it('Ping the redis server', function(done) { | ||
rs.ping(function(err, resp) { | ||
resp.should.equal("PONG"); | ||
done(); | ||
}); | ||
}); | ||
it('Get a Session with invalid app format: no app supplied', function(done) { | ||
@@ -36,0 +42,0 @@ rs.get({}, function(err, resp) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
93556
1419
406
+ Addedhiredis@0.5.0(transitive)
- Removedhiredis@0.4.1(transitive)
Updatedredis@^2.x