Disconnects all redis clients but first waits for pending replies.
RediBox.quit();
Force Disconnects, will not wait for pending replies (use disconnect if you need to wait).
RediBox.disconnect();
- client [Object]
RedisClient
, the redis client instance to check.
Returns true
if connected or false
if not.
const isConnected = RediBox.isClientConnected(RediBox.clients.myCustomClient);
Returns an object of details about this host, it's process and timestamps. Used for pubsub.
console.log(RediBox.hostInfo());