Oh The Huge Manatee

Drupal, Sysadminning, and Tech.

Get Memcache Statistics From the Command Line in One Easy Command

A quick one for myself to come back to. I can never find this one liner when I need it! It’s simple enough:

1
watch 'php -r '"'"'$m=new Memcache;$m->connect("127.0.0.1", 11211);print_r($m->getstats());'"'"

Next time I need to get memcached stats, I’ll check back here.

Comments