分类: LINUX
2010-07-01 15:17:37
printf "set test 0 0 5\r\n12345\r\n" | nc 200001
printf "get test\r\n" | nc 200001
VALUE test 0 5
12345
END
printf "stats\r\n" | nc 200001
STAT pid 3025
STAT uptime 4120500
STAT time 1228021767
STAT version 1.2.6
STAT pointer_size 32
STAT rusage_user 433.463103
STAT rusage_system 1224.515845
STAT curr_items 1132460
STAT total_items 8980260
STAT bytes 1895325386
STAT curr_connections 252
STAT total_connections 547850
STAT connection_structures 1189
STAT cmd_get 13619685
STAT cmd_set 8980260
STAT get_hits 6851607
STAT get_misses 6768078
STAT evictions 0
STAT bytes_read 160396238246
STAT bytes_written 260080686529
STAT limit_maxbytes 2147483648
STAT threads 1
END
printf "stats\r\n" | nc 200001