命令模式
telnet localhost 11211
执行stats items命令,可以看到出现 很多的items行
stats items
- STAT items:1:number 40
- STAT items:1:age 1475528
- 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 77
- STAT items:5:number 1
- STAT items:5:age 1978249
- STAT items:5:evicted 0
- STAT items:5:evicted_nonzero 0
- STAT items:5:evicted_time 0
- STAT items:5:outofmemory 0
- STAT items:5:tailrepairs 0
- STAT items:5:reclaimed 22
执行:stats cachedump 5 0
- ITEM 31612050|346001[7 b;1317462258 s]
- ITEM 31612114|346001[6 b;1317458169 s]
- ……………………
这里的5表示上面图中items后面的数字,0标示显示全部的数据,如果是1就标示只显示1条。