memcached show stats ubuntu code example
Example 1: check memcached status
echo stats | nc 203.0.113.12 11211
Example 2: check memcached status
$ watch -td '(echo stats ; echo quit) | nc 203.0.113.12 11211 | grep get_hits '
echo stats | nc 203.0.113.12 11211
$ watch -td '(echo stats ; echo quit) | nc 203.0.113.12 11211 | grep get_hits '