Created
May 11, 2013 16:45
-
-
Save timusg/5560556 to your computer and use it in GitHub Desktop.
redis , delete multiple keys matching regex pattern
This file contains hidden or 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 "*" | xargs -I {} redis-cli del "{}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment