From 99baf50984af1f361ebd1d3a43746c678c9cd43d Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Mon, 3 Jun 2024 10:08:15 +0800 Subject: [PATCH] t --- library/redis/lock.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 library/redis/lock.go diff --git a/library/redis/lock.go b/library/redis/lock.go new file mode 100644 index 00000000..65414cec --- /dev/null +++ b/library/redis/lock.go @@ -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) +// +//}