2023年7月30日
摘要: 什么是缓存击穿:给某一个key设置了过期时间,当key过期的时候,恰好这时间点对这个key有大量的并发请求过来,这些并发的请求可能会瞬间把数据库压垮。 互斥锁代码: 1 package com.atguigu.boot00testredis.controller; 2 3 import com.at 阅读全文
posted @ 2023-07-30 23:14 wuzx-blog 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1、pom文件中添加redis引用 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-web</artifactId> 4 </dependency> 5 <d 阅读全文
posted @ 2023-07-30 15:34 wuzx-blog 阅读(235) 评论(0) 推荐(0) 编辑