How to flush Memcached

How to flush Memcached

Overview
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
Nexcess Product Life Cycle
Added on Tue, Feb 5, 2019
What is GeoIP?
Added on Fri, Oct 31, 2014
What is SOAP?
Added on Tue, Jan 6, 2015
Colocation Access Card Request Form
Added on Tue, Oct 6, 2015
What is the DMCA?
Added on Mon, Feb 11, 2019
How to flush Redis
Added on Fri, Jan 4, 2019
Facility Access Policy (OTR)
Added on Mon, Jan 22, 2018
How to find a development partner
Added on Mon, Feb 11, 2019
How do I get sudo access to my Nexcess server?
Added on Wed, Feb 6, 2019
How to request and revoke facility access - OTR
Added on Mon, Jan 22, 2018