kk_redis

package
v0.0.0-...-4fa54e3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *redis.Client

Functions

func Del

func Del(key string) error

Del 删除 key

func Expire

func Expire(key string, expiration time.Duration) error

Expire 刷新键的有效时间

func Get

func Get(key string) (string, error)

Get 获取 key的值

func InitRedis

func InitRedis(stage *kk_stage.Stage, addr string, password string)

func Set

func Set(key string, value any, expiration time.Duration) error

Set 设置 key的值

func SetObject

func SetObject(key string, value any, expiration time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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