Skip to content

Instantly share code, notes, and snippets.

@gregarious-repo
Forked from mattweyant/redis-delallbykey
Created March 6, 2014 10:01
Show Gist options
  • Save gregarious-repo/9386510 to your computer and use it in GitHub Desktop.
Save gregarious-repo/9386510 to your computer and use it in GitHub Desktop.
# All credit: http://stackoverflow.com/questions/4006324/how-to-atomically-delete-keys-matching-a-pattern-with-redis
redis-cli [options] KEYS "prefix:*" | xargs redis-cli [options] DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment