当前位置:网站首页>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
边栏推荐
- Excel quickly merges multiple rows of data
- 递增的三元子序列[贪心训练]
- R language uses bwplot function in lattice package to visualize box plot and par Settings parameter custom theme mode
- Vscode common plug-ins summary
- 按照功能对Boost库进行分类
- 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
- Apple 5g chip research and development failure: continue to rely on Qualcomm, but also worry about being prosecuted?
- 吃透Chisel语言.03.写给Verilog转Chisel的开发者(没有Verilog基础也可以看看)
- Error in find command: paths must precede expression (turn)
- Code hoof collection of wonderful secret place
猜你喜欢
随机推荐
Leetcode T49: 字母异位词分组
10.(地图数据篇)离线地形数据处理(供Cesium使用)
按照功能对Boost库进行分类
Can mortgage with housing exclude compulsory execution
nowcoder重排链表
Basic mode of service mesh
go语言中的文件创建,写入,读取,删除(转)
CVPR 2022 | greatly reduce the manual annotation required for zero sample learning, and propose category semantic embedding rich in visual information (source code download)
Unittest框架中引入TestFixture
LifeCycle
Huahao Zhongtian rushes to the scientific and Technological Innovation Board: the annual loss is 280million, and it is proposed to raise 1.5 billion. Beida pharmaceutical is a shareholder
IDEA快捷键大全
Understand chisel language thoroughly 09. Chisel project construction, operation and testing (I) -- build and run chisel project with SBT
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
Understand chisel language thoroughly 04. Chisel Foundation (I) - signal type and constant
The mouse wheel of xshell/bash/zsh and other terminals is garbled (turn)
递增的三元子序列[贪心训练]
Xcode 异常图片导致ipa包增大问题
流行框架:Glide的使用
sql优化之查询优化器




![递增的三元子序列[贪心训练]](/img/92/7efd1883c21c0e804ffccfb2231602.png)



![[R language data science]: cross validation and looking back](/img/a8/84a5685ebcb12d3cf8e32e1fbac053.png)
