shell指令操作memcached
shell指令操作memcached,可以用来直接测试memcached.
初始值为1000
#set test-value =1000
printf "set test-value 0 0 4\r\n1000\r\n" | nc 127.0.0.1 11211
#get test-value
printf "get test-value\r\n" | nc 127.0.0.1 11211
#test-value +1
printf "incr test-value 1000\r\n" | nc 127.0.0.1 11211
#test-value-1
printf "decr test-value 1000\r\n" | nc 127.0.0.1 11211
#delete test-value
printf "delete test-value\r\n" | nc 127.0.0.1 11211
#view stats
printf "stats\r\n" | nc 127.0.0.1 11211