0
我正在使用一个简单的lua程序进行批量插入,每个项目的过期时间设置为86400秒,其中不会在全天过期。curr_item似乎不是正确的?
现在我有百万curr_items,但如果我用memcached的工具把它们扔掉,和grep为“^添加”,我只27235项
%> memcached-tool 127.0.0.1:11211 display
# Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM
8 480B 4s 464 1012907 no 0 0 0
%> memcached-tool 127.0.0.1:11211 dump | grep ^add -c
Dumping memcache contents
Number of buckets: 1
Number of items : 1012907
Dumping bucket 8 - 1012907 total items
27235
%> memcached-tool 127.0.0.1:11211 stats | egrep '(curr|bytes)'
bytes 447704894
bytes_read 407765187
bytes_written 78574999
curr_connections 10
curr_items 1012907
limit_maxbytes 2147483648
我需要这个估计可能存储需要得到了我的系统,但现在我不确定项目数量,哪一个是正确的?