redis

package
v0.0.0-...-e809a50 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 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 Mutex

type Mutex struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

func NewMutex

func NewMutex(client *v8.Client) *Mutex

NewMutex 新建

func (*Mutex) Lock

func (m *Mutex) Lock(key string, expires time.Duration) error

Lock 上锁

func (*Mutex) Unlock

func (m *Mutex) Unlock() error

Unlock 释放

Jump to

Keyboard shortcuts

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