Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 693 Bytes

core-api.md

File metadata and controls

29 lines (22 loc) · 693 Bytes

Core API

quit

Disconnects all redis clients but first waits for pending replies.

RediBox.quit();

disconnect

Force Disconnects, will not wait for pending replies (use disconnect if you need to wait).

RediBox.disconnect();

isClientConnected

  • client [Object] RedisClient , the redis client instance to check.

Returns true if connected or false if not.

const isConnected = RediBox.isClientConnected(RediBox.clients.myCustomClient);

hostInfo

Returns an object of details about this host, it's process and timestamps. Used for pubsub.

console.log(RediBox.hostInfo());