redis

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRedis

func InitRedis() *redis.Client

InitRedis 初始化Redis连接

func Lock

func Lock(key string) bool

func UnLock

func UnLock(key string) int64

Types

type DisLockRedis

type DisLockRedis struct {
	// contains filtered or unexported fields
}

type Redis

type Redis struct {
	Ip       string
	Port     int
	Password string
	Db       int
}

func NewRedisStd

func NewRedisStd() *Redis

Jump to

Keyboard shortcuts

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