How do I delete everything in Redis?

前端 未结 22 977
无人共我
无人共我 2020-11-28 17:18

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

Is there a way to do this in Redis client?

22条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 17:34

    FLUSHALL Remove all keys from all databases

    FLUSHDB Remove all keys from the current database

    SCRIPT FLUSH Remove all the scripts from the script cache.

提交回复
热议问题