2025年5月8日
摘要: 1、使用setnx设置key。 2、保证自己删线程的时候不去删除别人的。 3、设置线程key的作用时间,不会永久。 4、系统启动时可以先清空这个redis key值。 那么如何实现呢? 见下面代码: String script = "if redis.call('get', KEYS[1]) == 阅读全文
posted @ 2025-05-08 18:30 Hi Martin 阅读(19) 评论(0) 推荐(0)
摘要: 使用seata作为分布式事务 ## Nacos下载和安装 官网网址:https://nacos.io/zh-cn/index.html ![image-20210915113531807](image-20210915113531807.png) 官网文档网址:https://nacos.io/zh 阅读全文
posted @ 2025-05-08 15:45 Hi Martin 阅读(13) 评论(0) 推荐(0)