Last active
February 6, 2020 14:20
-
-
Save lftbrts/81306021c0ccf68d2a68ecbcbeb2e397 to your computer and use it in GitHub Desktop.
redis | remove all keys by pattern immediatly
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
#!/usr/bin/env bash | |
redis-cli -n 0 -h localhost -p 10009 KEYS "kv:foo_baz:*" | xargs redis-cli -n 0 -p 10009 DEL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment