Skip to content

Instantly share code, notes, and snippets.

@iflamed
Created January 16, 2021 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iflamed/704ac38dc33ef70560d01876a90b3d35 to your computer and use it in GitHub Desktop.
Save iflamed/704ac38dc33ef70560d01876a90b3d35 to your computer and use it in GitHub Desktop.
批量删除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