Redis Flushdb 命令

更新时间: 2019-07-07 15:54

Redis Flushdb 命令用于清空当前数据库中的所有 key。

语法

redis Flushdb 命令基本语法如下:

redis 127.0.0.1:6379> FLUSHDB 

可用版本

>= 1.0.0

返回值

总是返回 OK 。

实例

redis 127.0.0.1:6379> DBSIZE    # 清空前的 key 数量
(integer) 4

redis 127.0.0.1:6379> FLUSHDB
OK

redis 127.0.0.1:6379> DBSIZE    # 清空后的 key 数量
(integer) 0

查看更多 Redis 服务器命令

C# Primer Plus

C# Primer Plus

Klaus Michelsen / Sams / 2001-12-15 / USD 49.99

C# Primer Plus is a tutorial based introduction to the C# language and important parts of the .Net Framework. Throughout the book the reader will be exposed to proven principles enabling him to write ......一起来看看 《C# Primer Plus》 这本书的介绍吧!

JSON 在线解析

JSON 在线解析

在线 JSON 格式化工具

随机密码生成器

随机密码生成器

多种字符组合密码

HTML 编码/解码

HTML 编码/解码

HTML 编码/解码