Created
April 22, 2017 22:19
-
-
Save nyctef/8bfd85bd842aae6d645917ed8b7dcf8a to your computer and use it in GitHub Desktop.
mass-delete redis keys
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
# courtesy of http://stackoverflow.com/questions/4006324/how-to-atomically-delete-keys-matching-a-pattern-using-redis | |
EVAL "for _,k in ipairs(redis.call('keys', 'seq*')) do redis.call('del', k) end" 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment