Last active
September 23, 2019 09:17
-
-
Save aamsur-mkt/507b222c12f1244151dea715bcdb2ec3 to your computer and use it in GitHub Desktop.
One liner Del Redis By Key
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 -h 9.9.9.9 -p 6379 -a authkey -n indexdb --scan --pattern *yourfpattern* | xargs redis-cli -h 9.9.9.9 -p 6379 -a authkey -n indexdb del | |
# first syntax will show list of keys | |
redis-cli -h 9.9.9.9 -p 6379 -a authkey -n indexdb --scan --pattern *yourfpattern* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment