No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

22 líneas
897 B

  1. package redis
  2. import (
  3. "github.com/redis/go-redis/v9/push"
  4. )
  5. // NewPushNotificationProcessor creates a new push notification processor
  6. // This processor maintains a registry of handlers and processes push notifications
  7. // It is used for RESP3 connections where push notifications are available
  8. func NewPushNotificationProcessor() push.NotificationProcessor {
  9. return push.NewProcessor()
  10. }
  11. // NewVoidPushNotificationProcessor creates a new void push notification processor
  12. // This processor does not maintain any handlers and always returns nil for all operations
  13. // It is used for RESP2 connections where push notifications are not available
  14. // It can also be used to disable push notifications for RESP3 connections, where
  15. // it will discard all push notifications without processing them
  16. func NewVoidPushNotificationProcessor() push.NotificationProcessor {
  17. return push.NewVoidProcessor()
  18. }