Skip to content

Instantly share code, notes, and snippets.

@bencrouse
Created September 30, 2013 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencrouse/6767822 to your computer and use it in GitHub Desktop.
Save bencrouse/6767822 to your computer and use it in GitHub Desktop.
Delete multiple keys from Redis
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