Skip to content

Commit ae366c3

Browse files
committed
Revert "added close method to close redis connection"
This reverts commit f8649ce.
1 parent c2bf2a0 commit ae366c3

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/cache-connector.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,6 @@ var CacheConnector = function( options ) {
2424

2525
util.inherits( CacheConnector, Connection )
2626

27-
/**
28-
* Gracefully close the connection to redis
29-
*
30-
* Called when deepstream.close() is invoked.
31-
* Emits 'close' event to notify deepstream of clean closure.
32-
*
33-
* @public
34-
* @returns {void}
35-
*/
36-
CacheConnector.prototype.close = function(){
37-
this.client.removeAllListeners( 'end' )
38-
this.client.once( 'end', this.emit.bind( this, 'close' ) )
39-
this.client.quit()
40-
}
41-
4227
/**
4328
* Deletes an entry from the cache.
4429
*
@@ -96,4 +81,4 @@ CacheConnector.prototype.get = function( key, callback ) {
9681
})
9782
}
9883

99-
module.exports = CacheConnector
84+
module.exports = CacheConnector

0 commit comments

Comments
 (0)