mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
feat: remove global handlers and enable push notifications by default
- Remove all global push notification handler functionality - Simplify registry to support only single handler per notification type - Enable push notifications by default for RESP3 connections - Update comprehensive test suite to remove global handler tests - Update demo to show multiple specific handlers instead of global handlers - Always respect custom processors regardless of PushNotifications flag Push notifications are now automatically enabled for RESP3 and each notification type has a single dedicated handler for predictable behavior.
This commit is contained in:
@ -221,7 +221,11 @@ type Options struct {
|
||||
// When enabled, the client will process RESP3 push notifications and
|
||||
// route them to registered handlers.
|
||||
//
|
||||
// default: false
|
||||
// For RESP3 connections (Protocol: 3), push notifications are automatically enabled.
|
||||
// To disable push notifications for RESP3, use Protocol: 2 instead.
|
||||
// For RESP2 connections, push notifications are not available.
|
||||
//
|
||||
// default: automatically enabled for RESP3, disabled for RESP2
|
||||
PushNotifications bool
|
||||
|
||||
// PushNotificationProcessor is the processor for handling push notifications.
|
||||
|
Reference in New Issue
Block a user