摘要: 源码来自https://github.com/study-only/go-locks Redis分布式锁 Redis SET 命令 从Redis 2.6.12版本开始,SET命令的行为可以通过一系列参数来修改,详见Redis命令参考: SET key value [EX seconds] [PX m 阅读全文
posted @ 2020-03-20 20:02 small_lei_it 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: 本文内容 使用Redis优化高并发场景下的接口性能 数据库乐观锁 前提 活动规则 奖品数量有限,比如100个 不限制参与用户数 每个用户只能参与1次秒杀 活动要求 不能多发,也不能少发,100个奖品要全部发出去 1个用户最多抢1个奖品 遵循先到先得原则,先来的用户有奖品 数据库实现 悲观锁性能太差, 阅读全文
posted @ 2020-03-20 18:13 small_lei_it 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 连接redis数据库时突然报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data 阅读全文
posted @ 2020-03-20 17:37 small_lei_it 阅读(74) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/llhf688/article/details/90448222 Viscosity 1.7.13 破解版序列号 Name: Black Flag Email: random@user.com Serial: VM1U-QY3G41-XN5IYG-WIOC 阅读全文
posted @ 2020-03-20 09:59 small_lei_it 阅读(2840) 评论(0) 推荐(0) 编辑