Created
May 26, 2020 10:37
-
-
Save ricferr/a3072c6d77743749fb95d7be6eb4ce02 to your computer and use it in GitHub Desktop.
Get number of items in memcached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "stats items\nquit\n" |nc 127.0.0.1 11211|grep "items:.*:number"|awk '{ sum += $3} { print sum }'|tail -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment