client

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	INFO = "INFO"
	KEYS = "KEYS"
	DEL  = "DEL"
)
View Source
const (
	STRING = "string"
	HASH   = "hash"
	LIST   = "list"
	ZSET   = "zset"
	SET    = "set"
)

Variables

View Source
var ErrReadLine = errors.New("read redis line error")

Functions

func NewClient

func NewClient(addr string) (*redis, error)

Types

type RedisPool

type RedisPool struct {
	sync.Pool
	// contains filtered or unexported fields
}

func NewRedisPool

func NewRedisPool(addr string, password string) *RedisPool

func (*RedisPool) Get

func (rp *RedisPool) Get() *redis

func (*RedisPool) Put

func (rp *RedisPool) Put(r *redis)

Jump to

Keyboard shortcuts

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