Skip to content

Instantly share code, notes, and snippets.

@jost125
Last active August 29, 2015 14:14
Show Gist options
  • Save jost125/0b34859f760d14835d65 to your computer and use it in GitHub Desktop.
Save jost125/0b34859f760d14835d65 to your computer and use it in GitHub Desktop.
#!/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