mredis

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(address string, password string, dbIndex int) *redis.Client

Create 创建数据库

func Get

func Get(ctx context.Context, client *redis.Client, key string) (string, error)

Get 获取

func Rm

func Rm(ctx context.Context, client *redis.Client, key string) error

Rm 删除

func Set

func Set(ctx context.Context, client *redis.Client, key, value string, du time.Duration) error

Set 设置

func SetBaseKey

func SetBaseKey(v string)

SetBaseKey 设置基础key

Types

This section is empty.

Jump to

Keyboard shortcuts

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