![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Redis
文章平均质量分 81
yven_style
一个人有两块手表就永远不知道时间
展开
-
redis在spring项目中的使用(RedisTemplate)
1、redis.properties配置文件# -----redis------redis.host=xxx.xxx.xxx.xxxredis.port=6379redis.pass=xxxredis.conf.maxActive=5000redis.conf.maxIdle=100redis.conf.maxWait=10000redis.conf.testOnBorrow=f原创 2018-02-05 11:44:35 · 2458 阅读 · 2 评论 -
redis启动与关闭
启动:使用配置文件启动 redis-server redis.confredis-server/usr/local/bin/redis-server后台启动,在配置文件中设置: 把daemonize设置为yes设置密码:在配置文件中设置: requirepass 123456连接: redis-cli -h localhost -...原创 2018-03-01 10:32:29 · 773 阅读 · 0 评论 -
redis特点和使用场景
特点:1、速度快2、持久化3、支持多种编程语言4、支持多种数据结构,支持五种数据结构:String、List、Set、Hash、Zset5、功能丰富,支持事务、流水线、发布\订阅、消息队列6、主从复制7、高可用及分布式 。Redis-Sentinel(v2.8) 支持高可用,Redis-Cluster(v3.0)支持分布式8、单线程,利用队列技术,将访问转载 2018-03-26 10:02:04 · 205 阅读 · 0 评论 -
redis工具类(redisTemplate实现)
package cn.common.utils;import java.io.UnsupportedEncodingException;import java.util.ArrayList;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;imp...原创 2018-05-05 15:30:03 · 3331 阅读 · 1 评论