Class ConnectorIORedis

Abstract class for creating connections to different backend providers. All implementations should extend this class and implement the following steps:

  1. Add the provider to ./providers/.ts
  2. Update ./factory.ts to reference the provider
  3. Register the tag with the Provider type in ./types/provider.ts.
  4. Create the specific provider type file at ./types/.ts
  5. Update ./modules/utils.ts (identifyProvider) with logic to resolve the provider by inspecting the class/import

Hierarchy (view full)

Constructors

Properties

connection: any = null
defaultOptions: IORedisClientOptions = ...
id: string = null
disconnecting: boolean = false
instances: Map<string, AbstractConnection<ProviderClass, ProviderOptions>> = ...
logger: ILogger = ...

Methods