首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Memcached 命令模式上查看所有值

2013-02-25 
Memcached 命令模式下查看所有值命令模式telnet localhost 11211执行stats items命令,可以看到出现 很多的

Memcached 命令模式下查看所有值

命令模式
telnet localhost 11211

执行stats items命令,可以看到出现 很多的items行

stats items

  1. STAT items:1:number 40
  2. STAT items:1:age 1475528
  3. STAT items:1:evicted 0
  4. STAT items:1:evicted_nonzero 0
  5. STAT items:1:evicted_time 0
  6. STAT items:1:outofmemory 0
  7. STAT items:1:tailrepairs 0
  8. STAT items:1:reclaimed 77
  9. STAT items:5:number 1
  10. STAT items:5:age 1978249
  11. STAT items:5:evicted 0
  12. STAT items:5:evicted_nonzero 0
  13. STAT items:5:evicted_time 0
  14. STAT items:5:outofmemory 0
  15. STAT items:5:tailrepairs 0
  16. STAT items:5:reclaimed 22

执行:stats cachedump 5 0

  1. ITEM 31612050|346001[7 b;1317462258 s]
  2. ITEM 31612114|346001[6 b;1317458169 s]
  3. ……………………

这里的5表示上面图中items后面的数字,0标示显示全部的数据,如果是1就标示只显示1条。

热点排行