亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线

Redis Flushall 命令

Redis 服務(wù)器

Redis Flushall 命令用于清空整個(gè) Redis 服務(wù)器的數(shù)據(jù)(刪除所有數(shù)據(jù)庫(kù)的所有 key )。

語(yǔ)法

redis Flushall 命令基本語(yǔ)法如下:

redis 127.0.0.1:6379> FLUSHALL

可用版本

>= 1.0.0

返回值

總是返回 OK 。

在線示例

redis 127.0.0.1:6379> DBSIZE            # 0 號(hào)數(shù)據(jù)庫(kù)的 key 數(shù)量
(integer) 9
redis 127.0.0.1:6379> SELECT 1          # 切換到 1 號(hào)數(shù)據(jù)庫(kù)
OK
redis 127.0.0.1:6379> DBSIZE         # 1 號(hào)數(shù)據(jù)庫(kù)的 key 數(shù)量
(integer) 6
redis 127.0.0.1:6379> flushall       # 清空所有數(shù)據(jù)庫(kù)的所有 key
OK
redis 127.0.0.1:6379> DBSIZE         # 不但 1 號(hào)數(shù)據(jù)庫(kù)被清空了
(integer) 0
redis 127.0.0.1:6379> SELECT 0       # 0 號(hào)數(shù)據(jù)庫(kù)(以及其他所有數(shù)據(jù)庫(kù))也一樣
OK
redis 127.0.0.1:6379> DBSIZE
(integer) 0

 

Redis 服務(wù)器