2022年1月20日
摘要: 一、HashMap 是不安全的 1、故障现象 public class NotSafeMapDemo { public static void main(String[] args) { Map<String, String> map = new HashMap<>(); for (int i = 阅读全文
posted @ 2022-01-20 22:51 格物致知_Tony 阅读(248) 评论(0) 推荐(0)
摘要: 一、HasheSet 集合的不安全 1、故障现象 public class NotSafeSetDemo { public static void main(String[] args) { Set<String> set = new HashSet<>(); for (int i = 0; i < 阅读全文
posted @ 2022-01-20 22:42 格物致知_Tony 阅读(1061) 评论(0) 推荐(1)
摘要: 一、ArrayList 是不安全的 1、故障现象 public class NotSafeDemo { public static void main(String[] args) { List<String> list = new ArrayList(); for (int i = 0; i < 阅读全文
posted @ 2022-01-20 22:24 格物致知_Tony 阅读(1249) 评论(0) 推荐(0)
摘要: 一、Redis 持久化 官网介绍:http://www.redis.io Redis 提供了 2 个不同形式的持久化方式。 RDB(Redis DataBase) AOF(Append Of File) 二、RDB(Redis DataBase) 1、官网介绍 2、RDB 是什么 在指定的时间间隔内 阅读全文
posted @ 2022-01-20 12:44 格物致知_Tony 阅读(78) 评论(0) 推荐(0)
摘要: 一、 阅读全文
posted @ 2022-01-20 12:41 格物致知_Tony 阅读(31) 评论(0) 推荐(0)
摘要: 一、Redis 的事务定义 Redis事务是一个单独的隔离操作:事务中的所有命令都会序列化、按顺序地执行。事务在执行的过程中,不会被其他客户端发送来的命令请求所打断。 Redis事务的主要作用就是串联多个命令防止别的命令插队。 二、Redis 事务(multi、exec、discard) 1、从输入 阅读全文
posted @ 2022-01-20 12:39 格物致知_Tony 阅读(48) 评论(0) 推荐(0)
摘要: 一、 二、 三、 阅读全文
posted @ 2022-01-20 12:35 格物致知_Tony 阅读(31) 评论(0) 推荐(0)
摘要: 一、Jedis 连通 Redis 二、Jedis 常用 API 三、验证码案例 阅读全文
posted @ 2022-01-20 12:26 格物致知_Tony 阅读(23) 评论(0) 推荐(0)