cache

package
v0.5.51 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *redis.Client

Functions

func Connect

func Connect(address, password string)

func HSet added in v0.5.4

func HSet(key, field string, i interface{}) error

用hash表存储结构体或Map

func Publish added in v0.1.27

func Publish(key string, i interface{}) error

广播结构体或者Map

func Set added in v0.1.27

func Set(key string, i interface{}, expiration time.Duration) error

缓存结构体或者Map

Types

This section is empty.

Jump to

Keyboard shortcuts

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