Redis provider for @mdf.js based on ioredis.
Using npm:
npm install @mdf.js/redis-provider
Using yarn:
yarn add @mdf.js/redis-provider
Check information about @mdf.js providers in the documentation of the core module @mdf.js/core.
Checks included in the provider:
error
, running
, stopped
] based in the last ping event. stopped
if the provider is stopped or has not been initialized yet, running
if the provider is running and the last ping event was successful, error
if the provider is running and the last ping event was not successful.pass
if the status is running
, warn
if the status is stopped
, fail
if the status is error
.used memory
/ max memory
.used memory / max memory
.fail
if there is a problem getting the memory usage, or if the memory usage is greater or equal than 100% of the maximum memory, warn
if the memory usage is greater than 80% of the maximum memory, pass
in other case.'127.0.0.1'
): REDIS connection host6379
): REDIS connection port0
): REDIS connection databaseundefined
): REDIS connection password2000
): REDIS connection retry delay factor60000
): REDIS connection retry delay max10000
): REDIS connection keepAlive10000
): REDIS connection keepAlive60000
): REDIS status check intervalfalse
): Disable Redis checksundefined
): Used as default container id, receiver name, sender name, etc. in cluster configurations.Copyright 2024 Mytra Control S.L. All rights reserved.
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.