redis

package
v0.0.0-...-c3ce9eb Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(key string) (bool, error)

Del 方法

func DelLike

func DelLike(key string) error

DelLike 方法

func Exists

func Exists(key string) bool

Exists 方法

func Get

func Get(key string) (string, error)

Get 方法

func GetRedisConn

func GetRedisConn() *redis.Pool

GetRedisConn 获取 Redis 客户端连接

func Set

func Set(key string, data string, seconds int) error

Set 方法

func Setup

func Setup() error

Setup 创建 Redis 连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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