How do I delete everything in Redis

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I want to delete all keys. I want everything wiped out and give me a blank database.

http://en.wikipedia.org/wiki/Redis_%28data_store%29 http://en.wikipedia.org/wiki/Redis_%28data_store%29

Answers

With redis-cli:

    • FLUSHDB - Removes data from your connection s CURRENT database.
    • FLUSHALL - Removes data from ALL databases.

Redis documentation:

For example, in your shell:

redis-cli flushall

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/6851909/how-do-i-delete-everything-in-redis

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils