flush
Bahasa Inggeris[fl??] vi merah; mengalir, untuk memerah atau berkilat; orang tunggal: flushes Jamak: flushes Present participle: flushing Past tense: flushed Past participle: flushedsemua
Bahasa Inggeris [?:l] Amerika [?l] semua jenis; sebanyak mungkin semua semua; anda, dia, dia, dsb.] segala sesuatu yang (seseorang) miliki
arahan redis FLUSHALL sintaks
Fungsi: Kosongkan data keseluruhan pelayan Redis (padam semua kunci semua pangkalan data).
Sintaks: FLUSHALL
Penerangan: Arahan ini tidak pernah gagal.
Versi yang tersedia: >= 1.0.0
Kerumitan masa: Belum jelas
Pemulangan: Sentiasa kembali OK .
arahan redis FLUSHALL contoh
redis> DBSIZE # 0 號(hào)數(shù)據(jù)庫(kù)的 key 數(shù)量 (integer) 9 redis> SELECT 1 # 切換到 1 號(hào)數(shù)據(jù)庫(kù) OK redis[1]> DBSIZE # 1 號(hào)數(shù)據(jù)庫(kù)的 key 數(shù)量 (integer) 6 redis[1]> flushall # 清空所有數(shù)據(jù)庫(kù)的所有 key OK redis[1]> DBSIZE # 不但 1 號(hào)數(shù)據(jù)庫(kù)被清空了 (integer) 0 redis[1]> SELECT 0 # 0 號(hào)數(shù)據(jù)庫(kù)(以及其他所有數(shù)據(jù)庫(kù))也一樣 OK redis> DBSIZE (integer) 0