Latest web development tutorials

Redis comando Flushdb

servidor Redis

Redis comando Flushdb se utiliza para borrar la base de datos actual de toda la llave.

gramática

Redis Flushdb sintaxis del comando básico es el siguiente:

redis 127.0.0.1:6379> FLUSHDB 

versiones disponibles

> = 1.0.0

Valor de retorno

Siempre devuelve OK.

Ejemplos

redis 127.0.0.1:6379> DBSIZE    # 清空前的 key 数量
(integer) 4

redis 127.0.0.1:6379> FLUSHDB
OK

redis 127.0.0.1:6379> DBSIZE    # 清空后的 key 数量
(integer) 0

servidor Redis