vanng822 / gorlock

Redis Lock wrapper for running distributed tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gorlock

Redis Lock wrapper for running distributed tasks

Usage

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

About

Redis Lock wrapper for running distributed tasks

License:MIT License


Languages

Language:Go 100.0%