How to flush Redis

How to flush Redis

This article shows how to use flush Redis from the command line interface (CLI).

You must have SSH access to your server in order to use this method. If you do not have SSH access, see How to enable SSH access for details.

ATTENTIONUse caution when performing this operation. If you are a Nexcess client, we recommend discussing other options with our support team before flushing your Redis database. You may contact them by email or through the Client Portal.

  1. Log in to your server with SSH.

  2. Identify the Redis connection details in the configuration file for your CMS. If you need help locating this file, contact our Support Team.

  3. Flush your cache using one the below commands, but replace the angled brackets (<>) and everything between them with the indicated information. If the first path is invalid, try the second. The correct path depends on your server type and various other factors.

    1. redis-cli -s /var/tmp/redis-multi_<customer_specific_name>_cache.sock FLUSHALL
    2. redis-cli -s /var/run/redis-multi/<customer_specific_name>_cache.sock FLUSHALL

For more information

See the official Redis documentation about the Redis CLI or the FLUSHALL command

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
What is Git?
Added on Mon, Sep 15, 2014
How to interpret MTR results
Added on Tue, Jun 26, 2018
What is SOAP?
Added on Tue, Jan 6, 2015
Nexcess Product Life Cycle
Added on Tue, Feb 5, 2019
How to decompress files in gzip
Added on Tue, Jan 6, 2015
How to find a development partner
Added on Mon, Feb 11, 2019
Colocation Access Card Request Form
Added on Tue, Oct 6, 2015
How to transfer domains
Added on Wed, Nov 23, 2016
How to clear your browser cache
Added on Mon, Aug 20, 2018
What is the DMCA?
Added on Mon, Feb 11, 2019