mirror of
https://github.com/hanzokv/go.git
synced 2026-09-24 00:31:51 +00:00
Update module path from github.com/redis/go-redis/v9 to github.com/hanzoai/kv-go/v9 for use as the Hanzo KV Go SDK. - Update go.mod module declaration - Update all Go imports across 260 files - Update all submodule go.mod files (extra/*, example/*, internal/customvet)
22 lines
896 B
Go
22 lines
896 B
Go
package redis
|
|
|
|
import (
|
|
"github.com/hanzoai/kv-go/v9/push"
|
|
)
|
|
|
|
// 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 available
|
|
func NewPushNotificationProcessor() 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 them
|
|
func NewVoidPushNotificationProcessor() push.NotificationProcessor {
|
|
return push.NewVoidProcessor()
|
|
}
|