Created
April 2, 2015 07:44
-
-
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 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
# 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