Created
September 9, 2017 08:20
-
-
Save petitchevalroux/1d0a453ddfd833c822fc8e8350606b45 to your computer and use it in GitHub Desktop.
Redis delete keys matching a 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 --no-raw keys "exd:*" | perl -pe 's/^.*?[0-9]+\)/del/g' | redis-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment