service/library/redis/lock.go

18 lines
279 B
Go

package redis
//import (
// "github.com/bsm/redislock"
//)
//
//func T() {
// client := redis.NewClient(&redis.Options{
// Network: "tcp",
// Addr: "127.0.0.1:6379",
// })
// defer client.Close()
//
// // Create a new lock client.
// locker := redislock.New(client)
//
//}