ssh into the server in question
echo -e "flush_all\r\nquit" | nc `hostname -s` 11211