How to flush Memcached

How to flush Memcached

This article shows how to use flush Memcached with 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.

  1. Log in to your server with SSH.
  2. Identify the location of the Memcached socket or IP/port using the configuration file of your CMS. If you require assistance locating this file or encounter difficulty with this procedure, contact our Support Team by email or through the Client Portal.
  3. Flush your cache:
    • For unix-socket-based Memcached:

      echo "flush_all" | nc -U [path/to/memcachedsocket.sock]
    • For TCP-socket-based Memcached:

      echo "flush_all" | nc [memcachedhost] [memcachedport]

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