flush

英[fl??] 美[fl??]

vi. flush; blush; red; rush

adj. flushed Light; rich, rich; full, submerged; horizontal, at the same height

n.Rush, gush; blush or shine; heat; the impulse of strong emotion

vt. To make red or shiny; to make excited or proud; to wash (with water), flush; to wash away, to get rid of

Third person singular: flushes Plural: flushes Present participle: flushing Past tense: flushed past participle: flushed

all

英[?:l] 美[?l]

adj. All; all; all kinds of; extremely, as much as possible

pron.all;everything;everyone,everything;all circumstances

adv.entirely;completely;every;very

n. Whole; [often used as A-] whole; [often used with my, your, his, her, etc.] everything that (someone) has

redis FLUSHALL command syntax

Function: Clear the data of the entire Redis server (delete all keys of all databases).

Syntax: FLUSHALL

Description: This command never fails.

Available versions: >= 1.0.0

Time complexity: Not yet clear

Returns: Always returns OK.

redis FLUSHALL command example

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