cache

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisPoolConnection added in v0.0.7

func NewRedisPoolConnection() redis.Conn

Types

type EventType added in v0.0.5

type EventType int
const (
	Set EventType = iota
	Del
)

func (EventType) String added in v0.0.5

func (e EventType) String() string

type RedisEvent added in v0.0.5

type RedisEvent struct {
	Key  string
	Type EventType
}

type RedisKeyInformer

type RedisKeyInformer struct {
	C <-chan *RedisEvent
	// contains filtered or unexported fields
}

func NewRedisKeyInformer

func NewRedisKeyInformer(ctx context.Context, addr string) (*RedisKeyInformer, error)

watches key events

func (*RedisKeyInformer) Start

func (r *RedisKeyInformer) Start()

Jump to

Keyboard shortcuts

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