redis

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker struct {
	redis.Cmdable
}

func NewLocker

func NewLocker(client redis.Cmdable) *Locker

func (*Locker) Lock

func (m *Locker) Lock(name string, expiration time.Duration) error

func (*Locker) Unlock

func (m *Locker) Unlock(name string) error

Jump to

Keyboard shortcuts

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