当前位置:网站首页>Redis daily notes
Redis daily notes
2022-07-04 14:21:00 【Ke Rui】
1.redis colony Clean all key
redis 5.0 The above can be executed to the whole cluster through the following commands flushall command :
redis-cli --cluster call <one-of-the-nodes-address>:<its-port> FLUSHALL
Examples are as follows :
adopt –cluster Parameters sent to the cluster flushall command :
[[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
see dbsize, All have been cleared .
[[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
边栏推荐
- C # WPF realizes the real-time screen capture function of screen capture box
- sql优化之查询优化器
- Rich text editing: wangeditor tutorial
- MySQL之详解索引
- Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
- TestSuite and testrunner in unittest
- Learn kernel 3: use GDB to track the kernel call chain
- NowCoder 反转链表
- Incremental ternary subsequence [greedy training]
- AI与生命科学
猜你喜欢
随机推荐
架构方面的进步
【信息检索】链接分析
Learn kernel 3: use GDB to track the kernel call chain
LiveData
opencv3.2 和opencv2.4安装
Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
File creation, writing, reading, deletion (transfer) in go language
sql优化之查询优化器
MySQL的存储过程练习题
sharding key type not supported
php 日志调试
使用CLion编译OGLPG-9th-Edition源码
Incremental ternary subsequence [greedy training]
Understand chisel language thoroughly 10. Chisel project construction, operation and testing (II) -- Verilog code generation in chisel & chisel development process
按照功能对Boost库进行分类
Supprimer les lettres dupliquées [avidité + pile monotone (maintenir la séquence monotone avec un tableau + Len)]
Excel快速合并多行数据
Leetcode T47: 全排列II
[R language data science]: cross validation and looking back
Innovation and development of independent industrial software