@mimik/rediser
v1.5.3
Published
Helper for setting up redis using redis for mimik microservices
Downloads
45
Readme
rediser
Example
const redis = require('@mimik/rediser');
- rediser
- async
- ~validate() ⇒ Promise
- sync
- ~initializeSync() ⇒ object
- async
rediser~validate() ⇒ Promise
Database connection validation.
Kind: inner method of rediser
Returns: Promise - .
Category: async
Throws:
- Promise Will throw an error if the database connection is not
connected
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
.
rediser~initializeSync() ⇒ object
Database initialization.
Kind: inner method of rediser
Returns: object - The database object.
Category: sync
Requires: module:sumologic-winston-logger