当前位置:网站首页>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
边栏推荐
- Test process arrangement (2)
- Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
- File creation, writing, reading, deletion (transfer) in go language
- 2022游戏出海实用发行策略
- R language uses the mutation function of dplyr package to standardize the specified data column (using mean function and SD function), and calculates the grouping mean of the standardized target varia
- 吃透Chisel语言.08.Chisel基础(五)——Wire、Reg和IO,以及如何理解Chisel生成硬件
- Install MySQL
- MySQL的触发器
- 吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行
- NowCoder 反转链表
猜你喜欢
sql优化之查询优化器
gin集成支付宝支付
去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]
Unittest框架中引入TestFixture
[matlab] summary of conv, filter, conv2, Filter2 and imfilter convolution functions
瑞吉外卖笔记
Oppo find N2 product form first exposure: supplement all short boards
Ruiji takeout notes
markdown 语法之字体标红
【FAQ】華為帳號服務報錯 907135701的常見原因總結和解决方法
随机推荐
Use of arouter
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
The font of markdown grammar is marked in red
Mask wearing detection based on yolov1
Ws2818m is packaged in cpc8. It is a special circuit for three channel LED drive control. External IC full-color double signal 5v32 lamp programmable LED lamp with outdoor engineering
Install MySQL
软件测试之测试评估
flink sql-client.sh 使用教程
IDEA快捷键大全
Hardware Basics - diode Basics
What is the real meaning and purpose of doing things, and what do you really want
sql优化之explain
Use of tiledlayout function in MATLAB
Read excel table data
R language dplyr package summary_ If function calculates the mean and median of all numerical data columns in dataframe data, and summarizes all numerical variables based on conditions
2022 practice questions and mock exams for the main principals of hazardous chemical business units
Vscode common plug-ins summary
测试流程整理(2)
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses the by parameter to specify the groupin
nowcoder重排链表