Contact
Site: US UK AU |

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 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
How to interpret MTR results
Added on Tue, Jun 26, 2018
How to clear your browser cache
Added on Mon, Aug 20, 2018
How to find a development partner
Added on Mon, Feb 16, 2015
How to decompress files in gzip
Added on Tue, Jan 6, 2015
How to request and revoke facility access - OTR
Added on Mon, Jan 22, 2018
What is SOAP?
Added on Tue, Jan 6, 2015
How to flush Redis
Added on Thu, Apr 7, 2016
How to transfer domains
Added on Wed, Nov 23, 2016
What is GeoIP?
Added on Fri, Oct 31, 2014
Facility Access Policy (OTR)
Added on Mon, Jan 22, 2018