An open API service indexing awesome lists of open source software.

https://github.com/vanng822/gorlock

Redis Lock wrapper for running distributed tasks
https://github.com/vanng822/gorlock

Last synced: about 2 months ago
JSON representation

Redis Lock wrapper for running distributed tasks

Awesome Lists containing this project

README

        

# gorlock

Redis Lock wrapper for running distributed tasks

# Usage

```go
import (
"fmf"

"github.com/vanng822/gorlock"
)
gorlock.Run("somekey", func() error {
fmt.Println("Doing some job")
return nil
})
```