How do I to flush redis db from python redis?

前端 未结 3 1484
深忆病人
深忆病人 2021-01-01 09:26

Is there a way I can flush my redis db using redis?

I\'m looking for something like redis.flushdb() or redis.flushall()

3条回答
  •  囚心锁ツ
    2021-01-01 10:05

    Yes, flushdb() and flushall() both exist.

    check out this page, you will find them.

提交回复
热议问题