1. Home
  2. MageMojo Hosting
  3. Flush Redis databases

Flush Redis databases

If you are using Redis for caching or sessions, you may need to clear it during development or to troubleshoot a site problem.  You can flush redis directly via the command line using the example commands below.

 >redis-cli flushall
#flushes all redis databaes
>redis-cli -n 1 flushdb
#flushes specific redis database number

Updated on July 27, 2017

Was this article helpful?

Related Articles