Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ClusterMode bool // Whether to use Redis in cluster mode. Address []string // List of Redis server addresses (host:port). Username string // Username for Redis authentication (Redis 6 ACL). Password string // Password for Redis authentication. MaxRetry int // Maximum number of retries for a command. DB int // Database number to connect to, for non-cluster mode. PoolSize int // Number of connections to pool. }
Config defines the configuration parameters for a Redis client, including options for both single-node and cluster mode connections.
Click to show internal directories.
Click to hide internal directories.