redigo

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Take

func Take(r *redis.Pool) dist.RedisCli

Types

type RedigoCli

type RedigoCli struct {
	// contains filtered or unexported fields
}

func (*RedigoCli) OK

func (g *RedigoCli) OK() bool

if the redis client is ready

func (*RedigoCli) Pub

func (g *RedigoCli) Pub(channel, payload string) error

pub a payload to channel

func (*RedigoCli) Sub

func (g *RedigoCli) Sub(channel string, callback func(payload string)) error

sub a payload from channel, callback uill tidy the local cache

Jump to

Keyboard shortcuts

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