Source File
push_notifications.go
Belonging Package
github.com/redis/go-redis/v9
package redisimport ()// NewPushNotificationProcessor creates a new push notification processor// This processor maintains a registry of handlers and processes push notifications// It is used for RESP3 connections where push notifications are availablefunc () push.NotificationProcessor {return push.NewProcessor()}// NewVoidPushNotificationProcessor creates a new void push notification processor// This processor does not maintain any handlers and always returns nil for all operations// It is used for RESP2 connections where push notifications are not available// It can also be used to disable push notifications for RESP3 connections, where// it will discard all push notifications without processing themfunc () push.NotificationProcessor {return push.NewVoidProcessor()}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |