go redis锁
摘要:
redis经常用作分布式锁,这里记录一个简单的锁代码如下: package main import ( "crypto/rand" "encoding/base64" "fmt" "github.com/go-redis/redis" "io" "sync" "time" ) func main() 阅读全文
posted @ 2021-11-29 19:53 dz45693 阅读(1664) 评论(0) 推荐(0) 编辑