Is there a way I can flush my redis db using redis?
I'm looking for something like redis.flushdb()
or redis.flushall()
Is there a way I can flush my redis db using redis?
I'm looking for something like redis.flushdb()
or redis.flushall()
Yes, flushdb()
and flushall()
both exist.
check out this page, you will find them.
Redis-py actually has this functionality:
import redis
r = redis.Redis()
r.flushdb()