redis

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrRedisConnNil = ErrRedis("redis conn nil")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrRedis added in v1.2.6

type ErrRedis string

func (ErrRedis) Error added in v1.2.6

func (err ErrRedis) Error() string

type Hub

type Hub struct {
	LOG func() *logger.Logger
	// contains filtered or unexported fields
}

func NewHub

func NewHub() *Hub

func (*Hub) Close

func (h *Hub) Close() error

func (*Hub) Do

func (h *Hub) Do(cmd string, args ...interface{}) (interface{}, error)

func (*Hub) Get

func (h *Hub) Get() (redis.Conn, error)

Jump to

Keyboard shortcuts

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