Type Alias: RedisMutexConnection
RedisMutexConnection =
object
The Redis connection of a RedisMutexDriver: a url, or a host and a port.
Properties
database?
optionaldatabase?:number
The index of the Redis database.
Default
ts
0host?
optionalhost?:string
The host name or IP address of the server.
Default
ts
'127.0.0.1'password?
optionalpassword?:string
The password.
Default
ts
noneport?
optionalport?:number
The port of the server.
Default
ts
6379tls?
optionaltls?:boolean
Whether to connect with TLS (ignored with a url: use rediss://).
Default
ts
falseurl?
optionalurl?:string
The server URL (redis://user:password@host:6379/0, rediss:// for TLS). When set, host, port and tls are ignored; username, password and database apply when the URL does not give them.
Default
ts
noneusername?
optionalusername?:string
The user name (Redis 6 ACL).
Default
ts
none (the default user)