Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yblee85/e54817f1b66835f5b846120f0ca7f471 to your computer and use it in GitHub Desktop.
Save yblee85/e54817f1b66835f5b846120f0ca7f471 to your computer and use it in GitHub Desktop.
Redis: How delete keys matching a pattern?
redis-cli KEYS "prefix:*" | xargs redis-cli DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment