![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
缓存
Q3Q
技术共享
展开
-
Redis性能监控指标汇总
监控指标 性能指标:Performance 内存指标: Memory 基本活动指标:Basic activity 持久性指标: Persistence 错误指标:Error 性能指标:PerformanceName Description latency Redis响应一个请求的时间 instantaneous_ops_per_sec 平均每秒处理请求总数 hi rate(calculated) 缓存命中率(计算出来的原创 2020-07-22 10:28:33 · 152 阅读 · 0 评论 -
Redis常用配置说明
1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程daemonize no2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定pidfile /var/run/redis.pid3. 指定Redis监听端口,默认端口为6379,作者在自己的一篇...原创 2019-11-01 17:58:45 · 218 阅读 · 0 评论 -
redis常用命令
清空Redis所有key:flush db # 清除当前数据库的所有keysflush all # 清除所有数据库的所有keys查询匹配key:keys * # 查看所有keyskeys prefix_* # 查看前缀为"prefix_"的所有keyskey基本操作:exists key # 确认一个key是否存在set key v...原创 2019-10-21 16:36:28 · 95 阅读 · 0 评论 -
Redis 实战
1.单数据源(1)pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem...原创 2019-10-21 15:56:27 · 114 阅读 · 0 评论 -
Redis安装 主从 哨兵模式 cluster
单机安装:1.安装tar -zxvf redis-3.2.11.tar.gzcd redis-3.2.11makemake installvi redis.conf#bind 127.0.0.1 #注释掉protected-mode no #保护模式daemonize yes #后台进程启动2.设置密码config set requirepass te...原创 2019-10-21 15:53:48 · 1370 阅读 · 0 评论