Function: importRedis()
importRedis():
Promise<__module>
Defined in: service-core/src/database/ConnectionKinds.ts:23
Dynamically imports the redis package, throwing a helpful error if it isn't installed. redis is a peer
dependency (like mongodb and typeorm) rather than a hard dependency of this package, so it must only be
loaded when a consumer actually configures a redis-backed feature — never imported at the top of a module
that's always loaded, or every consumer would be forced to install it regardless of whether they use it.
Returns
Promise<__module>