RedisSocketOptions class

Options for connecting to a Redis server. 连接到Redis服务器的选项。

Constructors

RedisSocketOptions({String host = 'localhost', int port = 6379, String username = '', String? password, int db = 0, Duration timeout = const Duration(seconds: 30), Duration retryInterval = const Duration(seconds: 30), int retryAttempts = 3, bool tlsSecure = false, List<int>? caCertBytes, List<int>? certBytes, List<int>? keyBytes})
factory

Properties

caCertBytes List<int>?
tls certificate tls 证书
getter/setter pair
certBytes List<int>?
getter/setter pair
db int
数据库索引,默认为0。
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
host String
The host of the Redis server. Defaults to localhost. Redis服务器所在主机。 默认为localhost。
getter/setter pair
keyBytes List<int>?
getter/setter pair
password String?
The password for authenticating to the Redis server. Defaults to null. 认证到Redis服务器的密码 默认为null。
getter/setter pair
port int
The port of the Redis server. Defaults to 6379. Redis服务器的端口。 默认为6379。
getter/setter pair
retryAttempts int
The maximum number of connection attempts. Defaults to 3. 最大连接尝试数。 默认为3。
getter/setter pair
retryInterval Duration
The delay between connection attempts. Defaults to 30 second. 连接尝试之间的延迟。 默认30秒。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
The timeout for connecting to the Redis server. Defaults to 30 seconds. 连接Redis服务器超时时间。 默认为30秒。
getter/setter pair
tlsSecure bool
Specifies whether to use a secure (TLS/SSL) Socket connection. 指定是否使用安全(TLS/SSL)Socket连接。
getter/setter pair
username String
The username for authenticating to the Redis server. Defaults to ''. 认证到Redis服务器的用户名 默认为 '' 。
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited