Redis.destroyManager()

Destroy the specified connection manager and destroy all of its active connections.

Usage

Hover over inputs/exits for more info.

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


// Destroy the specified connection manager and destroy all of its active connections.

Redis.destroyManager({

manager: '===',

meta: '===',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Could not destroy the provided connection manager.

failed: function (result) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

manager required

The connection manager instance to destroy.

'==='
meta

Additional stuff to pass to the driver.

'==='

Exits

error

An unexpected error occurred.

failed

Could not destroy the provided connection manager.

{ error: '===', meta: '===' }
success

OK.

{ meta: '===' }