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
- Host: GitHub
- URL: https://github.com/vanng822/gorlock
- Owner: vanng822
- License: mit
- Created: 2016-08-10T22:55:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T11:05:14.000Z (5 months ago)
- Last Synced: 2025-01-18T05:27:32.908Z (3 months ago)
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
})
```