####刷入數據code
略get
####取出全部key的slabidit
# echo -en 'stats items\r\n'|nc 127.0.0.1 11212|awk -F: '{print $2}'|grep -v ^$|uniqawk
1
# echo -en 'stats items\r\n'|nc 127.0.0.1 11212|awk -F: '{print $2}'|grep -v ^$|uniq|while read i;do echo -en "stats cachedump $i 0\r\n"|nc 127.0.0.1 11212;done |awk -F' ' '{print $2}'|grep -v ^$grep
c b a
# echo -en 'stats items\r\n'|nc 127.0.0.1 11212|awk -F: '{print $2}'|grep -v ^$|uniq|while read i;do echo -en "stats cachedump $i 0\r\n"|nc 127.0.0.1 11212;done |awk -F' ' '{print $2}'|grep -v ^$|while read key;do echo -en "get $key\r\n"|nc 127.0.0.1 11212;done數據
VALUE c 0 1 4 END VALUE b 0 1 2 END VALUE a 0 1 1 END