Created
September 30, 2013 18:14
-
-
Save bencrouse/6767822 to your computer and use it in GitHub Desktop.
Delete multiple keys from Redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis-cli keys 'query*' | awk '{ gsub("\"", "*", $1); print "\"" $1 "\"" }' | xargs redis-cli DEL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment