当前位置:网站首页>redis 日常笔记
redis 日常笔记
2022-07-04 12:52:00 【珂-瑞】
1.redis 集群 清空所有key
redis 5.0以上可以通过如下命令向整个集群执行flushall命令:
redis-cli --cluster call <one-of-the-nodes-address>:<its-port> FLUSHALL
示例如下:
通过–cluster参数向集群发出flushall命令:
[[email protected] hermes_ta]# redis-cli --cluster call 127.0.0.1:7000 flushall
>>> Calling flushall
127.0.0.1:7000: READONLY You can't write against a read only replica. 127.0.0.1:7003: READONLY You can't write against a read only replica.
127.0.0.1:7004: READONLY You can't write against a read only replica. 127.0.0.1:7007: OK 127.0.0.1:7006: READONLY You can't write against a read only replica.
127.0.0.1:7002: OK
127.0.0.1:7005: OK
127.0.0.1:7001: OK
查看dbsize,已经全部清零。
[[email protected] hermes_ta]# redis-cli --cluster call 127.0.0.1:7000 dbsize
>>> Calling dbsize
127.0.0.1:7000: 0
127.0.0.1:7003: 0
127.0.0.1:7004: 0
127.0.0.1:7007: 0
127.0.0.1:7006: 0
127.0.0.1:7002: 0
127.0.0.1:7005: 0
127.0.0.1:7001: 0
边栏推荐
- 【FAQ】華為帳號服務報錯 907135701的常見原因總結和解决方法
- 【信息检索】分类和聚类的实验
- IDEA快捷键大全
- 做事的真正意义和目的,真正想得到什么
- Migration from go vendor project to mod project
- 吃透Chisel语言.08.Chisel基础(五)——Wire、Reg和IO,以及如何理解Chisel生成硬件
- Install MySQL
- Unity shader learning (3) try to draw a circle
- R语言使用dplyr包的mutate函数对指定数据列进行标准化处理(使用mean函数和sd函数)并基于分组变量计算标准化后的目标变量的分组均值
- Yingshi Ruida rushes to the scientific and Technological Innovation Board: the annual revenue is 450million and the proposed fund-raising is 979million
猜你喜欢
Apple 5g chip research and development failure: continue to rely on Qualcomm, but also worry about being prosecuted?
Unity Shader学习(三)试着绘制一个圆
sql优化之查询优化器
软件测试之测试评估
2022 practice questions and mock exams for the main principals of hazardous chemical business units
How to package QT and share exe
sharding key type not supported
MySQL 5 installation and modification free
【信息检索】分类和聚类的实验
吃透Chisel语言.11.Chisel项目构建、运行和测试(三)——Chisel测试之ScalaTest
随机推荐
MySQL之详解索引
Common content type correspondence table
qt 怎么检测鼠标在不在某个控件上
Understand chisel language thoroughly 12. Chisel project construction, operation and testing (IV) -- chisel test of chisel test
IDEA快捷键大全
MATLAB中tiledlayout函数使用
Leetcode T49: 字母异位词分组
吃透Chisel语言.06.Chisel基础(三)——寄存器和计数器
R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
Leetcode 61: 旋转链表
Code hoof collection of wonderful secret place
R语言ggplot2可视化:gganimate包创建动画图(gif)、使用anim_save函数保存gif可视化动图
Leetcode T48:旋转图像
vscode 常用插件汇总
Rich text editing: wangeditor tutorial
GCC【6】- 编译的4个阶段
R语言ggplot2可视化:gganimate包创建动态折线图动画(gif)、使用transition_reveal函数在动画中沿给定维度逐步显示数据
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
gin集成支付宝支付
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法