当前位置:网站首页>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
边栏推荐
- Use of arouter
- Yingshi Ruida rushes to the scientific and Technological Innovation Board: the annual revenue is 450million and the proposed fund-raising is 979million
- Remove duplicate letters [greedy + monotonic stack (maintain monotonic sequence with array +len)]
- Migration from go vendor project to mod project
- GCC【6】- 编译的4个阶段
- Matters needing attention in overseas game Investment Agency
- Leetcode T47: 全排列II
- php 日志调试
- IP 实验室月复盘 · 第 5 期
- 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
猜你喜欢
Haobo medical sprint technology innovation board: annual revenue of 260million Yonggang and Shen Zhiqun are the actual controllers
The font of markdown grammar is marked in red
使用CLion编译OGLPG-9th-Edition源码
How to package QT and share exe
吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行
基于PaddleX的智能零售柜商品识别
JVM memory layout detailed, illustrated, well written!
Hardware Basics - diode Basics
TestSuite and testrunner in unittest
[R language data science]: cross validation and looking back
随机推荐
软件测试之测试评估
gorm 之数据插入(转)
R语言使用dplyr包的mutate函数对指定数据列进行标准化处理(使用mean函数和sd函数)并基于分组变量计算标准化后的目标变量的分组均值
[matlab] summary of conv, filter, conv2, Filter2 and imfilter convolution functions
Learning projects are self-made, and growth opportunities are self created
递增的三元子序列[贪心训练]
MySQL之详解索引
如何游戏出海代运营、游戏出海代投
Incremental ternary subsequence [greedy training]
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
qt 怎么检测鼠标在不在某个控件上
Gorm data insertion (transfer)
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
Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
Idea shortcut keys
Mask wearing detection based on yolov1
R language uses bwplot function in lattice package to visualize box plot and par Settings parameter custom theme mode
【Matlab】conv、filter、conv2、filter2和imfilter卷积函数总结
富文本编辑:wangEditor使用教程
卷积神经网络经典论文集合(深度学习分类篇)