Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
批量删除redis中的key
redis-cli -h host -a password --scan --pattern 'Name\\Path\\Value\\Patte*rn' | sed 's/\\/\\\\/g' | xargs redis-cli -h host -a password del
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment