rediser
Example
const redis = require('@mimik/rediser');
-
rediser
-
async
-
~validate() ⇒
Promise
-
~validate() ⇒
-
sync
-
~initializeSync() ⇒
object
-
~initializeSync() ⇒
-
async
Promise
rediser~validate() ⇒ Database connection validation.
Kind: inner method of rediser
Returns: Promise
- .
Category: async
Throws:
-
Promise
Will throw an error if the database connection is notconnected
and is notdisconnected
.
Will exit 1 if the connection request times out and the connection state is not connected
.
Requires: module:@mimik/sumologic-winston-logger
Fulfil: Return null
.
object
rediser~initializeSync() ⇒ Database initialization.
Kind: inner method of rediser
Returns: object
- The database object.
Category: sync
Requires: module:sumologic-winston-logger