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

上一篇:(五)WebGIS中通过行列号来换算出多种瓦片的URL 之在线地图


下一篇:yolov4-pacsp-s