Skip to content

Instantly share code, notes, and snippets.

@acanimal
Created June 28, 2016 13:18
Show Gist options
  • Save acanimal/69161ca0e19e50784cf37e26ebee109d to your computer and use it in GitHub Desktop.
Save acanimal/69161ca0e19e50784cf37e26ebee109d to your computer and use it in GitHub Desktop.
Flush redis database in one line
# n: the database number
# r: repeat command a number of times
#
redis-cli -n 4 -r 1 flushall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment