Created
January 16, 2021 20:02
-
-
Save iflamed/704ac38dc33ef70560d01876a90b3d35 to your computer and use it in GitHub Desktop.
批量删除redis中的key
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 -h host -a password --scan --pattern 'Name\\Path\\Value\\Patte*rn' | sed 's/\\/\\\\/g' | xargs redis-cli -h host -a password del |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment