linux nc命令操作memcache
1)儲存資料:printf “set key 0 10 6\r\nresult\r\n” |nc 192.168.2.34 11211
2)獲取資料:printf “get key\r\n” |nc 192.168.2.34 11211
3)刪除資料:printf “delete key\r\n” |nc 192.168.2.34 11211
4)檢視狀態:printf “stats\r\n” |nc 192.168.2.34 11211
5)模擬top命令檢視狀態:watch “echo stats” |nc 192.168.2.34 11211