xredis

package
v0.0.0-...-9493ce7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	C *redis.Client
}

RedisClient Redis客户端

func GetRedisClientInstance

func GetRedisClientInstance() *Client

GetRedisClientInstance 单实例

func (*Client) Initialize

func (object *Client) Initialize() (err error)

InitializeWithTimeout 初始化方法

type Mutex

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

Mutex Redis锁

func NewRedisMutex

func NewRedisMutex(key, uuid string,
	ms int,
	ch chan<- bool) *Mutex

NewRedisMutex 工厂方法

func (*Mutex) Unlock

func (object *Mutex) Unlock()

Unlock解锁

Jump to

Keyboard shortcuts

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