lock_helper

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockerRedis

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

redis 分布式锁

func NewLockerRedis

func NewLockerRedis(key, val string, ttlSecond int32) *LockerRedis

func (*LockerRedis) Check

func (o *LockerRedis) Check() (exist bool, err error)

func (*LockerRedis) Get

func (o *LockerRedis) Get() (ok bool, err error)

func (*LockerRedis) Release

func (o *LockerRedis) Release() (err error)

Jump to

Keyboard shortcuts

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