Redis initialization module for AdmiralCloud (AC) applications. Version 1.0.10 provides parallel connection of multiple named Redis instances based on configuration, attaching them to the `acapi` object. It supports custom retry strategy, per-instance TLS, environment-based flushing, and options like timeout and auto-pipelining. Released under MIT, maintained by AdmiralCloud AG.
npm install ac-bootstrap-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to require and call initRedis with a mocked acapi object, configuring a local Redis server and a database, then using the resulting acapi.redis instance.
Ensure each database object has at least name, server, and db properties.
Access Redis instances via acapi.redis.<databaseName> instead of relying on the return value.
Set bootstrapping: true to handle errors gracefully in non-production environments.
Ensure config.environment is set to 'test' if you want to flush databases.
Set acapi.config.redis with at least servers and databases arrays before calling initRedis.
Ensure the database's server field matches a server's server field in the servers array.
Start a Redis server on the specified host and port, or update the configuration to point to an available instance.