按章节整理的图文笔记,助你系统学习
随着SpringBoot版本迭代更新,关联的redis客户端也发生相应的变化。SpringBoot1.5.x版本默认的Redis客户端为Jedis。SpringBoot2.x版本默认的Redis客户端...
1、添加依赖 ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star...
1、序列化性能测试对比 通过上一节,我们了解了redisTemplate和StringRedisTemplate的区别,那么有没有什么办法,可以序列化对象,可读性又强呢? -1、手动转化成jso...
1、创建工程 1)、添加依赖 ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-...
1、创建项目工程 1)、选择SpringWeb依赖 2)、选择SpringDataRedis依赖 是一种消息通信模式:发送者(pub)发送消息,订阅者(sub)接收消息。 Redis客户端可以订阅任意数量的频道。 下图展示了频道...
1、RedisGEO简介 RedisGEO主要用于存储地理位置信息,并对存储的信息进行操作,该功能在Redis3.2版本新增。 RedisGEO操作方法有: -geoadd:添加地理位置的坐标。...