redis

package
v0.0.0-...-f1b6753 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Pool *redis.Pool //连接池

	Max_pool_size int //最大连接池数
	Timeout       int //超时时间

	Addr     string //Redis地址
	Pass     string //Redis密码
	Port     string //Redis端口
	DataBase string //Redis数据库
}

func (*Handler) Init

func (h *Handler) Init()

func (*Handler) LPUSH

func (h *Handler) LPUSH(key string, value interface{})

func (*Handler) SADD

func (h *Handler) SADD(key string, value interface{})

func (*Handler) SET

func (h *Handler) SET(key string, value interface{})

func (*Handler) ZADD

func (h *Handler) ZADD(key string, member interface{}, score int)

Jump to

Keyboard shortcuts

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