Flushing a running memcached instanceEdit
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