Contact
Site: US UK AU |

How to flush Redis

How to flush Redis

Overview
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
Facility Access Policy (OTR)
Added on Mon, Jan 22, 2018
Nexcess Product Life Cycle
Added on Tue, Feb 5, 2019
How to change SSH passwords from the CLI
Added on Thu, Feb 8, 2018
How to transfer domains
Added on Wed, Nov 23, 2016
What is SOAP?
Added on Tue, Jan 6, 2015
Colocation Access Card Request Form
Added on Tue, Oct 6, 2015
What is GeoIP?
Added on Fri, Oct 31, 2014
What is Git?
Added on Mon, Sep 15, 2014
How to interpret MTR results
Added on Tue, Jun 26, 2018
How to request and revoke facility access (MEL, TMR)
Added on Wed, Feb 28, 2018