2808 explained code solutions for 75 technologies


python-redisClear all keys in Redis


r = redis.Redis()
keys = r.keys('*')
r.delete(*keys)ctrl + c
redis.Redis

connect to Redis server

r.keys('*')

get all keys from Redis

r.delete(*keys)

delete all specified keys (thus, all keys from Redis)