1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-18 00:20:57 +03:00
This commit is contained in:
Nedyalko Dyakov
2025-07-07 18:18:37 +03:00
parent 225c0bf5b2
commit e697fcc76b
14 changed files with 2173 additions and 29 deletions

View File

@ -224,6 +224,18 @@ type Options struct {
// PushNotificationProcessor is the processor for handling push notifications.
// If nil, a default processor will be created for RESP3 connections.
PushNotificationProcessor push.NotificationProcessor
// HitlessUpgrades enables hitless upgrade functionality for cluster upgrades.
// Requires Protocol: 3 (RESP3) for push notifications.
// When enabled, the client will automatically handle cluster upgrade notifications
// and manage connection/pool state transitions seamlessly.
//
// default: false
HitlessUpgrades bool
// HitlessUpgradeConfig provides custom configuration for hitless upgrades.
// If nil, default configuration will be used when HitlessUpgrades is true.
HitlessUpgradeConfig *HitlessUpgradeConfig
}
func (opt *Options) init() {