deepstream.io-cache-redis
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
## [1.0.1] - 2016-09-13 | ||
## [1.0.2] - 2016-09-22 | ||
@@ -6,5 +6,7 @@ ### Enhancements | ||
## [1.0.1] - 2016-09-13 | ||
### Miscellaneous | ||
- CI build no longer depends on external Redis | ||
[1.0.0] 2016-06-29 | ||
## [1.0.0] 2016-06-29 |
{ | ||
"name": "deepstream.io-cache-redis", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Redis cache connector for deepstream.io", | ||
@@ -5,0 +5,0 @@ "main": "src/cache-connector.js", |
@@ -28,2 +28,17 @@ var Connection = require( './connection' ) | ||
/** | ||
* Gracefully close the connection to redis | ||
* | ||
* Called when deepstream.close() is invoked. | ||
* Emits 'close' event to notify deepstream of clean closure. | ||
* | ||
* @public | ||
* @returns {void} | ||
*/ | ||
CacheConnector.prototype.close = function(){ | ||
this.client.removeAllListeners( 'end' ) | ||
this.client.once( 'end', this.emit.bind( this, 'close' ) ) | ||
this.client.quit() | ||
} | ||
/** | ||
* Deletes an entry from the cache. | ||
@@ -85,2 +100,2 @@ * | ||
module.exports = CacheConnector | ||
module.exports = CacheConnector |
15029
265