Interface RedisClientOptions<M, F, S>

Type Parameters

Hierarchy

Properties

commandsQueueMaxLength?: number

Maximum length of the client's internal command queue

database?: number

Redis database number (see SELECT command)

disableOfflineQueue?: boolean

When true, commands are rejected when the client is reconnecting. When false, commands are queued for execution after reconnection.

functions?: F
isolationPoolOptions?: Options
legacyMode?: boolean
modules?: M
name?: string

Client name (see CLIENT SETNAME)

password?: string

ACL password or the old "--requirepass" password

pingInterval?: number

Send PING command at interval (in ms). Useful with Redis deployments that do not use TCP Keep-Alive.

readonly?: boolean

Connect in READONLY mode

scripts?: S

Socket connection properties

url?: string

redis[s]://[[username][:password]@][host][:port][/db-number] See redis and rediss IANA registration for more details

username?: string

ACL username (see ACL guide)

Generated using TypeDoc