• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Flushing a running memcached instanceEdit

Created 9/9/2013, updated 7/9/2021

In the past I’ve resorted to a heavy-handed sudo /etc/init.d/memcached restart (or similar, depending on platform), but you can also do it with telnet:

$ telnet localhost 11211
flush_all

Or if you don’t have telnet (likely the case if you are on recent macOS):

echo flush_all | nc -w 2 localhost 11211
  • memcached
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).