Skip to content

Instantly share code, notes, and snippets.

@shmatt05
Created April 2, 2015 07:44
Show Gist options
  • Save shmatt05/6efb0a298f31e8bb577f to your computer and use it in GitHub Desktop.
Save shmatt05/6efb0a298f31e8bb577f to your computer and use it in GitHub Desktop.
Unix command for deleting all Redis keys that match a pattern (not for production)
# This is just for testing purposes
# Never use KEYS on production environments
redis-cli KEYS pattern | xargs redis-cli DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment