Created
December 4, 2017 03:20
-
-
Save debnath/a9879ffd5492113e7db2a33f016ced8c to your computer and use it in GitHub Desktop.
Redis script to delete all keys starting with a prefix
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 KEYS "PREFIX*" | xargs -L 100 redis-cli DEL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment