查看“Redis 清空缓存”的源代码
←
Redis 清空缓存
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
构建 Redis Cluster 要求集群中的所有节点都不能有数据 === 清空当前 DB 的数据 === <syntaxhighlight lang="powershell"> F:\下载目录\Redis-x64-5.0.14.1>.\redis-cli.exe -h 127.0.0.1 -p 6379 127.0.0.1:6379> auth vn4sj5kbxdaG OK 127.0.0.1:6379> keys * 1) "msg" 2) "test_key" 3) "{phoneList}:config" 4) "codehole" 5) "phoneList" 6) "test_test" 7) "\xac\xed\x00\x05t\x00\b20230218" 8) "test_key2" 9) "test_key1" 10) "\xac\xed\x00\x05t\x00\x05nihao" 11) "age" 12) "name" 127.0.0.1:6379> flushdb OK 127.0.0.1:6379> keys * (empty list or set) 127.0.0.1:6379> </syntaxhighlight> === 清空所有 DB 的数据 === <syntaxhighlight lang="powershell"> F:\下载目录\Redis-x64-5.0.14.1>.\redis-cli.exe -h 127.0.0.1 -p 6380 -a vn4sj5kbxdaG Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. 127.0.0.1:6380> keys * 1) "test_key1" 2) "name" 3) "test_key" 4) "phoneList" 5) "{phoneList}:config" 6) "msg" 7) "test_key2" 8) "codehole" 9) "\xac\xed\x00\x05t\x00\b20230218" 10) "\xac\xed\x00\x05t\x00\x05nihao" 11) "test_test" 12) "age" 127.0.0.1:6380> flushall OK 127.0.0.1:6380> keys * (empty list or set) 127.0.0.1:6380> </syntaxhighlight>
返回至
Redis 清空缓存
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
Spring Boot 2 零基础入门
Spring Cloud
Spring Boot
设计模式之禅
VUE
Vuex
Maven
算法
技能树
Wireshark
IntelliJ IDEA
ElasticSearch
VirtualBox
软考
正则表达式
程序员精讲
软件设计师精讲
初级程序员 历年真题
C
SQL
Java
FFmpeg
Redis
Kafka
MySQL
Spring
Docker
JMeter
Apache
Linux
Windows
Git
ZooKeeper
设计模式
Python
MyBatis
软件
数学
PHP
IntelliJ IDEA
CS基础知识
网络
项目
未分类
MediaWiki
镜像
问题
健身
国债
英语
烹饪
常见术语
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息