摘要: 1 redis是什么 redis底层使用C语言编写, 存储数据是放在内存中, 速度非常快. 单机能达到每秒10万条 2.redis作用: redis在互联网项目中一般充当分布式缓存使用 3 业务流程: 获取数据的时候先从redis中获取, 如果获取到数据则直接返回, 就不用访问数据库了 如果获取不到 阅读全文
posted @ 2019-11-20 20:23 阿楠121397442 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 一、Map boundHashOps (1)主方法,向redis当中存储Map值 @Resource private RedisTemplate<String, Object> redisTemplate; private static final Long EXPIRED_MINUTE = new 阅读全文
posted @ 2019-11-20 20:14 阿楠121397442 阅读(1999) 评论(0) 推荐(0) 编辑
摘要: RedisTemplate常用集合使用说明-boundValueOps boundValueOps()方法的使用: 首先要定义一个BoundValueOperations BoundValueOperations boundValueOperations = redisTemplate.boundV 阅读全文
posted @ 2019-11-20 20:06 阿楠121397442 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.根据进程名称查看进程号 ps -ef|grep redis 结果如下: [root@instance-xfl1djr7 ~]# ps -ef|grep redis root 23297 1 0 Jun12 ? 00:01:33 /usr/bin/redis-server 127.0.0.1:63 阅读全文
posted @ 2019-11-20 15:34 阿楠121397442 阅读(121) 评论(0) 推荐(0) 编辑