stats items
stats items
STAT items:1:number 4
STAT items:1:age 1736
STAT items:1:evicted 0
STAT items:1:evicted_nonzero 0
STAT items:1:evicted_time 0
STAT items:1:outofmemory 0
STAT items:1:tailrepairs 0
STAT items:1:reclaimed 0
STAT items:1:expired_unfetched 0
STAT items:1:evicted_unfetched 0
STAT items:1:crawler_reclaimed 0
STAT items:1:crawler_items_checked 0
STAT items:1:lrutail_reflocked 0
END
stats cachedump slab_id limit_num
查看内容
stats cachedump 1 0
ITEM a 8 b; 1442995392 s
ITEM abc 8 b; 1442995392 s
ITEM def 6 b; 1442995392 s
ITEM username 8 b; 1442995392 s
END
通过stats items 和 stats cachedump slab_id limit_num配合get命令可以遍历memcached的记录。