Skip to content

Instantly share code, notes, and snippets.

@zenbro
Created May 27, 2015 14:44
Show Gist options
  • Save zenbro/9be6765d219022f46559 to your computer and use it in GitHub Desktop.
Save zenbro/9be6765d219022f46559 to your computer and use it in GitHub Desktop.
Clear redis keys by specific pattern
# -n - database number
redis-cli -n 0 KEYS 'your_pattern*' | xargs redis-cli -n 0 DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment