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

redis FLUSHDB command syntax

Function: Clear all keys in the current database.

Syntax: FLUSHDB

Description: This command never fails.

Available versions: >= 1.0.0

Time complexity: O(1)

Return: always returns OK.

redis FLUSHDB command example

redis> DBSIZE    # 清空前的 key 数量
(integer) 4
redis> FLUSHDB
OK
redis> DBSIZE    # 清空后的 key 数量
(integer) 0