redlock

package
v2.1.51 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redlock

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

func New

func New(c *redis.Client) *Redlock

New 简单封装,仅支持单个redlock

func (*Redlock) NewMutex

func (r *Redlock) NewMutex(name string, options ...redsync.Option) *redsync.Mutex

Jump to

Keyboard shortcuts

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