gpt4 book ai didi

ruby-on-rails - memcache可以告诉您它正在使用多少内存吗?

转载 作者:行者123 更新时间:2023-12-04 04:38:08 25 4
gpt4 key购买 nike

memcache可以告诉您它总共使用了多少内存吗?

对于一个特定的 key 呢?

最佳答案

在php中,但我确定您能够将其翻译为RoR:-

echo "You are using " . $memcache->getstats()["bytes"] . " of storage ";
echo "out of " . $memcache->getstats()["limit_maxbytes"];

参见 http://php.net/manual/en/memcache.getstats.php

关于ruby-on-rails - memcache可以告诉您它正在使用多少内存吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5081343/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com