Can memcache tell you how much memory it is using in total?
How about for a particular key?
And on the command line, you could do this:
echo "stats" | nc 127.0.0.1 11211 | grep bytes
In php, but I'm sure you are able to translate to RoR:-
echo "You are using " . $memcache->getstats()["bytes"] . " of storage ";
echo "out of " . $memcache->getstats()["limit_maxbytes"];
See http://php.net/manual/en/memcache.getstats.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With