golock

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 2 Imported by: 0

README

go-lock

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedsyncLock

func NewRedsyncLock(p *redis.Pool) *redsync.Redsync

NewRedsyncLock 创建 redsync 锁

func RedsyncLockMutex

func RedsyncLockMutex(r *redsync.Redsync, name string, f LockedFunc, options ...redsync.Option) error

Types

type LockedFunc

type LockedFunc func() error

LockedFunc 获得到锁后执行的

Jump to

Keyboard shortcuts

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