RedisLock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOptions

func NewOptions() *options

Types

type Lock

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

func New

func New(key string, opts ...*options) *Lock

func (*Lock) Release

func (l *Lock) Release()

func (*Lock) TryLock

func (l *Lock) TryLock(waitTimeout, ttl time.Duration) bool

Jump to

Keyboard shortcuts

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