redis

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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.UniversalClient
}

func NewLocker

func NewLocker(client redis.UniversalClient) *Locker

func (*Locker) Lock

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

func (*Locker) Unlock

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

Jump to

Keyboard shortcuts

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