dogego_module_mutex

package module
v0.0.0-...-cf8f8b5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 3 Imported by: 4

README

dogego_module_mutex

使用Redis实现的分布式Mutex锁模块.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisMutex

type RedisMutex struct {
	RedisClient *redis.Client
}

func NewRedisMutex

func NewRedisMutex(redis_Client *redis.Client) *RedisMutex

func (*RedisMutex) Lock

func (mutex *RedisMutex) Lock(lock_name string, lock_time time.Duration) bool

func (*RedisMutex) UnLock

func (mutex *RedisMutex) UnLock(lock_name string) error

Jump to

Keyboard shortcuts

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