Last active
August 29, 2015 14:14
-
-
Save jost125/0b34859f760d14835d65 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "usage: $0 <prefix>" | |
exit -1 | |
fi | |
redis-cli EVAL "return redis.call('del', unpack(redis.call('keys', ARGV[1])))" 0 $1:* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment