Optional
autoResendUnfulfilledCommands
autoResendUnfulfilledCommands?: boolean
Optional
autoResubscribe
autoResubscribe?: boolean
Optional
commandsQueueMaxLength
commandsQueueMaxLength?: number
Optional
connectTimeout
connectTimeout?: number
Optional
database
database?: number
Optional
disableOfflineQueue
disableOfflineQueue?: boolean
Optional
enableReadyCheck
enableReadyCheck?: boolean
Optional
family
family?: "IPv4" | "IPv6"
Optional
keepAlive
keepAlive?: number
Optional
keyPrefix
keyPrefix?: string
Optional
lazyConnect
lazyConnect?: boolean
Optional
legacyMode
legacyMode?: boolean
Optional
name
name?: string
Optional
password
password?: string
Optional
readonly
readonly?: boolean
Optional
retry
retry?: {
initialReconnectionDelay?: number;
maxReconnectionAttempts?: number;
maxRetryCount?: number;
reconnectionBackoffFactor?: number;
totalReconnectionTimeout?: number;
}
Optional
socket
socket?: {
host?: string;
port?: number;
servername?: string;
tls?: boolean;
}
Optional
stringNumbers
stringNumbers?: boolean
Optional
tls
tls?: boolean | ConnectionOptions
Optional
username
username?: string