redisplug

package
v0.0.0-...-1472157 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisPlug

func NewRedisPlug(client *redis.Client, f RedisFormatter) plug.Plug

redis follows the format on keyspace notification:

__keyspace@<db>__:<key>

Use NewBasicRedisFormatter() or customized formatter for redis.

Types

type RedisFormatter

type RedisFormatter interface {
	plug.Formatter
	PrintPSubscribeKeyspace(cname string) string
}

func NewBasicRedisFormatter

func NewBasicRedisFormatter(dbnum, prefix, delim string) RedisFormatter

Jump to

Keyboard shortcuts

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