Redis.releaseConnection()

Close an active connection to the Redis server.

Usage

Hover over inputs/exits for more info.

var Redis = require('machinepack-redis');


// Close an active connection to the Redis server.

Redis.releaseConnection({

connection: '===',

meta: '===',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

connection required

An active Redis connection.

'==='
meta

Additional metadata to pass to the driver.

'==='

Exits

error

An unexpected error occurred.

undefined
success

OK.

{ meta: '===' }