Delete all keys from Redis
Some unix magic (that says it wasn't tested with Windows).
redis-cli KEYS "*" | xargs redis-cli DEL
Written by Daniel Schmidt
Related protips
2 Responses
there are commands for that : FLUSHALL (all keys in all db), FLUSHDB (all keys in active db)
http://redis.io/commands/flushall
http://redis.io/commands/flushdb
over 1 year ago
·
Thank you.
It's always good to know to have several ways to a solution of a problem.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Redis
Authors
Related Tags
#redis
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#