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 号数据库的 key 数量 (integer) 9 redis> SELECT 1 # 切换到 1 号数据库 OK redis[1]> DBSIZE # 1 号数据库的 key 数量 (integer) 6 redis[1]> flushall # 清空所有数据库的所有 key OK redis[1]> DBSIZE # 不但 1 号数据库被清空了 (integer) 0 redis[1]> SELECT 0 # 0 号数据库(以及其他所有数据库)也一样 OK redis> DBSIZE (integer) 0