Site: US UK AU |

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 obtain SSH access from Nexcess 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 Git?
Added on Mon, Sep 15, 2014
How to find a development partner
Added on Mon, Feb 16, 2015
What are the benefits of dedicated IP addresses?
Added on Thu, Jan 14, 2016
What is GeoIP?
Added on Fri, Oct 31, 2014
What is SOAP?
Added on Tue, Jan 6, 2015
What is the DMCA?
Added on Mon, Dec 29, 2014
Colocation Access Card Request Form
Added on Tue, Oct 6, 2015
How to decompress files in gzip
Added on Tue, Jan 6, 2015
How to request and revoke facility access (MEL, TMR)
Added on Wed, Feb 28, 2018
Facility Access Policy (OTR)
Added on Mon, Jan 22, 2018