Flushing Redis

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