Skip to content

azumads/dlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

To solve running non-repeatable job in an autoscale cluster problem.

Usage:

lock:= dlock.NewDLock(db)

success := lock.Lock("task-1", 10*time.Minute)
if !success{
    return
}
defer lock.UnLock("task-1")

...do task-1 code...

About

A Distributed Lock base on database for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages