This commit is contained in:
lwl0608 2024-06-03 10:08:15 +08:00
parent dcf2057a86
commit 99baf50984
1 changed files with 17 additions and 0 deletions

17
library/redis/lock.go Normal file
View File

@ -0,0 +1,17 @@
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)
//
//}