Closed GoogleCodeExporter closed 9 years ago
这个功能本来就是利用stats items和stats
cachedump来获取的,其中stats
cachedump只是debug接口,并非官方推荐的遍历方法。
我刚测试了下,通过这两个协议确实在大数据量的时候没办��
�获取所有的key,因此不要依赖KeyIterator做遍历。
Original comment by killme2...@gmail.com
on 26 Mar 2011 at 10:46
[deleted comment]
memcached内部对stats
cachedump的大小有限制,具体可以看这个回答
http://stackoverflow.com/questions/4363904/is-there-any-length-limitation-of-res
ult-by-stats-cachedump-in-memcached
我给出的建议就是不要依赖KeyIterator做遍历,这个功能仅在小
数据量的测试中有用,如单元测试等。
Original comment by killme2...@gmail.com
on 26 Mar 2011 at 10:49
thanks!
Original comment by springda...@gmail.com
on 28 Mar 2011 at 12:47
Original issue reported on code.google.com by
springda...@gmail.com
on 26 Mar 2011 at 9:46