Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(function () {
return Promise.all([
this.stat(),
this._call(this._client, 'info').then(redisInfo.parse)
]);
})
.spread(function (stats, info) {
this.client.INFO((err, result) => {
if (err) return cb(err)
try {
let info = redisInfo.parse(result)
return cb(null, info)
} catch (e) {
return cb(e)
}
})
}