Creates a new connector instance.
The database config instance
The logger instance
Closes the database connection.
A promise that resolves when the connection is closed
Establishes the database connection.
A promise that resolves when the connection is established
Retrieves the underlying connection object.
This method uses a type assertion to return the connection as the requested type. It is the caller's responsibility to ensure the correct type is used.
The expected type of the connection
The database connection cast to type T
StaticregisterRegister connector instance as singleton in DI container.
DI container to register in
Redis database connector implementation.
See