-
-
Save h0rn3t/f54b7872971be25187e55fffb0e0c4bb to your computer and use it in GitHub Desktop.
Delete all keys from Redis matching a regular expression
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
# All credit: http://stackoverflow.com/questions/4006324/how-to-atomically-delete-keys-matching-a-pattern-with-redis | |
redis-cli [options] KEYS "prefix:*" | xargs redis-cli [options] DEL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment