rdslock

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 3 Imported by: 0

README

rdslock

REDIS distributed lock with GoLang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAssigned

func InitAssigned(in *redis.Client)

InitAssigned ...

func InitURL

func InitURL(url string)

InitURL : url ( redis://:qwerty@localhost:6379/1 )

func Lock

func Lock(key string, exp time.Duration) (err error)

Lock ...

func UnLock

func UnLock(key string) (err error)

UnLock ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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