Skip to content

Instantly share code, notes, and snippets.

@bussiere
Created November 11, 2019 14:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bussiere/9808f90ed82c6772ac330e39841fc239 to your computer and use it in GitHub Desktop.
redis cmd
Delete all keys from all Redis databases:
$ redis-cli FLUSHALL
Delete all keys of the currently selected Redis database:
$ redis-cli FLUSHDB
Delete all keys of the specified Redis database:
$ redis-cli -n <database_number> FLUSHDB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment