redis

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisVarNamePrefix = ""

Functions

func InitRedis added in v1.6.8

func InitRedis(Addr string, Password string, DB int, VarNamePrefix string)

Types

type Redis

type Redis struct {
	Client *redis.Client
}

func (*Redis) Colse added in v1.6.8

func (m *Redis) Colse() error

func (*Redis) DoGet

func (m *Redis) DoGet(args ...any) ([]string, error)

获取变量 Do 模式

func (*Redis) DoSet

func (m *Redis) DoSet(args ...any) error

设置变量 Do 模式

func (*Redis) Get

func (m *Redis) Get(name string) (string, error)

获取变量

func (*Redis) InitRedisClient

func (m *Redis) InitRedisClient()

初始化 redis 客户端

func (*Redis) Set

func (m *Redis) Set(name string, value interface{}, expiration int64) error

设置变量

Jump to

Keyboard shortcuts

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