tools

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PSubscribeListen

func PSubscribeListen(conn *redigo.Client) (err error)

func RegisterExpireFunc

func RegisterExpireFunc(keyPrefix string, function ExpireKeyCallBack)

func RegisterFunc

func RegisterFunc(channel string, cb PSubscribeCallback)

Types

type EventType

type EventType string
const (
	ExpireEvent EventType = "__keyevent@0__:expired"
)

type ExpireKeyCallBack

type ExpireKeyCallBack func(key string)

type PSubscribeCallback

type PSubscribeCallback func(pattern, channel, device string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL