文章分类 -  Redis

摘要:参考 Window下Redis的安装和部署详细图文教程 https://blog.csdn.net/weixin_44893902/article/details/123087435 拓展: springboot2.7.0版本开始 废除了 META-INF/spring.factories的功能,所 阅读全文
posted @ 2023-01-30 17:24 没有好想法 阅读(27) 评论(0) 推荐(0)
摘要:使用windows系统下idea操作使用,首先要确认系统下redis安装并开启了服务 创建springboot 项目 pom.xml文件下添加 Redis 的依赖 application.properties或者application.yml中添加redis配置 创建测试类,增加@RunWith(S 阅读全文
posted @ 2023-01-30 15:59 没有好想法 阅读(90) 评论(0) 推荐(0)
摘要:pom.xml中添加 redis依赖 <!-- redis添加 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> < 阅读全文
posted @ 2023-01-30 15:32 没有好想法 阅读(59) 评论(0) 推荐(0)
摘要:Redis 的 Java 客户端很多,官方推荐的有三种: jedis lettuce redisson Spring对Redis客户端进行了整合,提供了 Spring Data Redis,在Spring Boot项目中还提供了对应的Starter,即spring-boot-starter-data 阅读全文
posted @ 2023-01-30 11:12 没有好想法 阅读(58) 评论(0) 推荐(0)
摘要:通用命令 flushall : 清空所有缓存 字符串 string 操作命令 哈希 hash 操作命令 列表 list 操作命令 集合 set 操作命令 有序集合 sorted set 操作命令 阅读全文
posted @ 2023-01-30 10:53 没有好想法 阅读(11) 评论(0) 推荐(0)
摘要:Redis是按key-value格式存储数据的,key固定是String格式,value有 5种常用的数据类型 string hash list set sorted set 详见 redis中文网 String : 普通字符串,常用 hash :适合储存对象 list 按照插入顺序排序,可以有重复 阅读全文
posted @ 2023-01-30 10:10 没有好想法 阅读(23) 评论(0) 推荐(0)