cache

package
v0.0.0-...-9b971e3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(ctx context.Context) error

清除缓存

func Del

func Del(ctx context.Context, key string) error

失效

func Get

func Get(ctx context.Context, key string, valuePtr interface{}) error

取值

func NewRedisClient

func NewRedisClient(ctx context.Context) error

NewRedisClient 创建Redis连接

func RedisCMDContext

func RedisCMDContext(ctx context.Context, args ...interface{}) (interface{}, error)

RedisCMDContext 执行Redis客户端命令

func Set

func Set(ctx context.Context, key string, value interface{}, expires ...int) error

存值

Types

This section is empty.

Jump to

Keyboard shortcuts

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