redis

package
v0.0.0-...-3d790bf Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRedisClosed redis 已关闭
	ErrRedisClosed = errors.New("redis is already closed")
	// ErrKeyNotFound 缓存键未找到
	ErrKeyNotFound = errors.New("cache Key doesn't found")
)
View Source
var DefaultSerializer = defaultSerializer{}

Functions

func New

func New(opt map[interface{}]interface{}) *redisCache

New 创建redisCache实例

Types

type Config

type Config struct {
	Addr     string // 缓存地址
	Password string // 密码
	Database string
	Prefix   string // 键值前缀
}

Jump to

Keyboard shortcuts

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