memcached工具的备注

安装

当我安装了Memcached后,它会自动进入系统。
它可以将Memcached中的内容以易于人们理解的方式教给我们。

用法

[root@test-fuka01 ~]# memcached-tool
Usage: memcached-tool <host[:port]> [mode]

       memcached-tool 10.0.0.5:11211 display    # shows slabs
       memcached-tool 10.0.0.5:11211            # same.  (default is display)
       memcached-tool 10.0.0.5:11211 stats      # shows general stats
       memcached-tool 10.0.0.5:11211 dump       # dumps keys and values

真的就是这样的,但是嘛

倒垃圾很方便,不再需要费劲地通过Telnet来弄出键值列表。

用过的系列产品

    対象にサクッと何item入ってるか
[root@test-fuka01 mcb]# ./mcb -c set -t 100 -n 100 -l 10 -a test-mem01.kakeru.com -p 11211                             
condition =>
        connect to test-mem01.kakeru.com TCP port 11211
        command = set
        100 threads run
        send 100 commands a thread, total 10000 commands
        average data length = 10
result =>
        interval =  1.074832 [sec]
        performance =  9303.779891 [commands/sec]
        thread info:
          ave. = 0.428156[sec], min = 0.146873[sec], max = 1.072446[sec]

[root@test-fuka01 mcb]# memcached-tool test-mem01.kakeru.com:11211 dump | grep Number
Dumping memcache contents
  Number of buckets: 1
  Number of items  : 1000
Dumping bucket 1 - 1000 total items