Last active
August 8, 2018 08:23
-
-
Save nghiaht/d0ec99debc61cfab95a6e4c4767949ea to your computer and use it in GitHub Desktop.
Delete Redis keys by patterns
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
redis-cli --raw keys "$PATTERN" | xargs redis-cli del |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment