Delete all Redis keys matching a pattern
You really don't need print or awk.
redis-cli KEYS "*" | xargs redis-cli DEL
Written by Shon M
Related protips
1 Response
Hi Shon M ,
Any idea why i get "ERR wrong number of arguments for 'keys' command" ?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Redis
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#