{"id":573,"date":"2017-06-07T09:40:51","date_gmt":"2017-06-07T09:40:51","guid":{"rendered":"http:\/\/e5f6ad6ce374177eef023bf5d0c018b6"},"modified":"2017-10-09T15:09:20","modified_gmt":"2017-10-09T07:09:20","slug":"memcache%e6%96%87%e6%9c%ac%e5%8d%8f%e8%ae%ae%e4%b8%ad%e6%96%87%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/573","title":{"rendered":"Memcache\u6587\u672c\u534f\u8bae\u4e2d\u6587\u7248"},"content":{"rendered":"<h2 class=\"postTitle\" style=\"text-align: left;\">Memcache \u534f\u8bae (\u8bd1)<\/h2>\n<div id=\"cnblogs_post_body\">\n<p style=\"text-align: left;\"><span style=\"color: #008000;\"><strong>\u534f\u8bae<\/strong><\/span><\/p>\n<p style=\"text-align: left;\">---------------------------------------------------------<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 Memcache\u5ba2\u6237\u7aef\u901a\u8fc7TCP\u8fde\u63a5\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\uff08UDP\u63a5\u53e3\u4e5f\u662f\u53ef\u7528\u7684\uff0c\u5728\u4e0b\u6587\u7684\"UDP\u534f\u8bae\"\u90e8\u5206\u6709\u8be6\u7ec6\u63cf\u8ff0\uff09\u3002Memcache\u670d\u52a1\u5668\u5728\u4e00\u4e2a(\u53ef\u914d\u7f6e\u7684)\u7aef\u53e3\u4e0a\u76d1\u542c\uff1b\u5ba2\u6237\u7aef\u8fde\u63a5\u8be5\u7aef\u53e3\uff0c\u53d1\u9001\u547d\u4ee4\u5230\u670d\u52a1\u5668\uff0c\u8bfb\u53d6\u54cd\u5e94\uff0c\u6700\u540e\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 \u7ec8\u6b62\u4f1a\u8bdd\u662f\u6ca1\u6709\u5fc5\u8981\u53d1\u9001\u547d\u4ee4\u7684\uff1a\u5982\u679c\u4e0d\u9700\u8981\u8be5\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u4efb\u4f55\u65f6\u5019\u90fd\u53ef\u4ee5\u5c06\u5176\u5173\u95ed\u3002\u4f46\u5373\u4fbf\u662f\u8fd9\u6837\uff0c\u5ba2\u6237\u7aef\u6700\u597d\u8fd8\u662f\u7f13\u5b58\u8fde\u63a5\uff0c\u800c\u4e0d\u662f\u5728\u8981\u5b58\u53d6\u6570\u636e\u65f6\u518d\u6253\u5f00\u8fde<br \/>\n\u63a5\u3002\u8fd9\u662f\u7531\u4e8ememcache\u88ab\u7279\u610f\u8bbe\u8ba1\u6210\u53ef\u4ee5\u5904\u7406\u5927\u91cf(\u6570\u767e\u4e2a\uff0c\u9700\u8981\u7684\u8bdd\u53ef\u4ee5\u4e0a\u5343\u4e2a)\u6253\u5f00\u7684\u8fde\u63a5\u3002\u7f13\u5b58\u8fd9\u4e9b\u8fde\u63a5\u4f1a\u51cf\u5c11\u5efa\u7acbTCP\u8fde\u63a5\u6240\u5e26\u6765\u7684\u5f00\u9500(\u76f8\u5bf9<br \/>\n\u4e8e\u6b64\uff0c\u5728\u670d\u52a1\u5668\u7aef\u5efa\u7acb\u4e00\u4e2a\u65b0\u8fde\u63a5\u7684\u51c6\u5907\u5de5\u4f5c\u6240\u5e26\u6765\u7684\u5f00\u9500\uff0c\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1)\u3002<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 \u5728Memcache\u534f\u8bae\u4e2d\u53d1\u9001\u7684\u6570\u636e\u5206\u4e24\u79cd\uff1a\u6587\u672c\u884c\u548c\u975e\u7ed3\u6784\u6570\u636e(unstructured<br \/>\ndata)\u3002\u7531\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u547d\u4ee4\u548c\u670d\u52a1\u5668\u7aef\u7684\u54cd\u5e94\u4f7f\u7528\u7684\u662f\u6587\u672c\u884c\u3002\u975e\u7ed3\u6784\u6570\u636e\u7528\u4e8e\u5ba2\u6237\u7aef\u5b58\u50a8\u6570\u636e\u7684\u65f6\u5019\u3002\u670d\u52a1\u5668\u4f1a\u5c06\u63a5\u6536\u5230\u7684\u975e\u7ed3\u6784\u6570\u636e\uff0c<br \/>\n\u4ee5\u5b57\u8282\u6d41\u7684\u5f62\u5f0f\u539f\u6837\u8fd4\u56de\u3002\u670d\u52a1\u5668\u5e76\u4e0d\u5173\u5fc3\u5728\u975e\u7ed3\u6784\u6570\u636e\u4e2d\u7684\u5b57\u8282\u5e8f\u7684\u95ee\u9898\u3002\u5bf9\u4e8e\u975e\u7ed3\u6784\u6570\u636e\u4e2d\u7684\u5b57\u7b26\u6ca1\u6709\u4efb\u4f55\u9650\u5236\uff0c\u4f46\u6570\u636e\u7684\u8bfb\u53d6\u65b9(\u5ba2\u6237\u7aef\u6216\u670d\u52a1\u5668)\u9700\u8981\u901a\u8fc7<br \/>\n\u4e00\u4e2a\u6587\u672c\u884c\u6570\u636e\uff0c\u5f97\u77e5\u6b63\u5728\u4f20\u8f93\u7684\u6570\u636e\u5757\u7684\u7cbe\u786e\u957f\u5ea6\u3002<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 \u6587\u672c\u884c\u603b\u662f\u4ee5\/r\/n\u7ed3\u675f\uff0c\u975e\u7ed3\u6784\u6570\u636e\u4e5f\u603b\u4ee5\/r\/n\u7ed3\u675f, \u4f46\/r, \/n\u6216\u8005\u5176\u5b83\u76848\u4f4d\u5b57\u7b26\u4e5f\u53ef\u80fd\u51fa\u73b0\u5728\u6570\u636e\u4e2d\uff0c\u6240\u4ee5\u5f53\u5ba2\u6237\u7aef\u4ece\u670d\u52a1\u5668\u8bfb\u53d6\u6570\u636e\u65f6\uff0c\u5fc5\u987b\u4f7f\u7528\u6240\u63d0\u4f9b\u6570\u636e\u957f\u5ea6\u6765\u51b3\u5b9a\u6570\u636e\u4f55\u65f6\u7ed3\u675f\uff0c\u800c\u4e0d\u662f\u57fa\u4e8e\/r\/n\u5728\u6570\u636e\u5757\u7684\u7ed3\u675f\u5904\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #008000;\"><strong>\u952e(Keys)<\/strong><\/span><br \/>\n\u5728Memcache\u4e2d\u5b58\u50a8\u7684\u6570\u636e\u662f\u4ee5\u952e\u6765\u6807\u8bc6\u7684\u3002\u952e\u662f\u4e00\u4e2a\u5168\u5c40\u552f\u4e00\u7684\u6587\u672c\u4e32\u6807\u8bc6\uff0c\u5ba2\u6237\u7aef\u901a\u8fc7\u7ecf\u6765\u5b58\u53d6\u6240\u9700\u7684\u6570\u636e\u3002\u5f53\u524d\uff0c<span style=\"color: #0000ff;\">\u952e\u7684\u957f\u5ea6\u9650\u5236\u662f250\u4e2a\u5b57\u7b26<\/span>(\u5f53\u7136\uff0c\u901a\u5e38\u6765\u8bf4\u5ba2\u6237\u7aef\u5e76\u4e0d\u9700\u8981\u4f7f\u7528\u90a3\u4e48\u957f\u7684\u952e)\u3002<span style=\"color: #0000ff;\">\u952e\u4e0d\u53c2\u5305\u542b\u63a7\u5236\u5b57\u7b26\u548c\u7a7a\u683c<\/span>\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #008000;\"><strong>\u547d\u4ee4(Commands)<br \/>\n<\/strong><\/span>\u00a0\u00a0 \u5b58\u50a8\u547d\u4ee4(\u67096\u4e2a\uff1a \"set\", \"add\" ,\"replace\", \"append\", \"prepend\" \u548c \"cas\")\u8981\u6c42\u670d\u52a1\u5668\u5b58\u50a8\u4ee5\u952e\u6807\u8bc6\u7684\u6570\u636e\u3002\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a\u547d\u4ee4\u884c\uff0c\u7136\u540e\u662f\u4e00\u4e2a\u6570\u636e\u5757\uff1b\u4e4b\u540e\u5ba2\u6237\u7aef\u7b49\u5f85\u4e00\u4e2a\u8868\u793a\u6210\u529f\/\u5931\u8d25\u7684\u54cd\u5e94\u884c\u3002<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 \u63d0\u53d6\u547d\u4ee4(\u6709\u4e24\u4e2a\uff1a\"get\"\u548c\"gets\")<br \/>\n\u8981\u6c42\u670d\u52a1\u5668\u63d0\u53d6\u4e00\u4e2a\u952e\u96c6(\u4e00\u6b21\u8bf7\u6c42\u4e00\u4e2a\u6216\u591a\u4e2a\u952e)\u7684\u6570\u636e\u3002\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a\u5305\u542b\u6240\u6709\u8bf7\u6c42\u952e\u7684\u547d\u4ee4\u884c\u3002\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u6570\u636e\u9879\uff0c\u670d\u52a1\u5668\u67e5\u627e\u5230\u540e\uff0c\u53d1\u9001\u4e00\u4e2a\u54cd\u5e94\u884c\u5230\u5ba2<br \/>\n\u6237\u7aef\uff0c\u5185\u542b\u8be5\u6570\u636e\u9879\u7684\u4fe1\u606f\uff0c\u540e\u8ddf\u8be5\u6570\u636e\u9879\u7684\u6570\u636e\uff0c\u76f4\u5230\u670d\u52a1\u5668\u53d1\u9001\u4e86\u4e00\u4e2a\"END\"\u54cd\u5e94\u884c\uff0c\u8868\u793a\u6574\u4e2a\u8fc7\u7a0b\u7684\u7ed3\u675f\u3002<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 \u547d\u4ee4\u884c\u603b\u662f\u4ee5\u547d\u4ee4\u884c\u5f00\u5934\uff0c\u540e\u8ddf\u4ee5\u7a7a\u683c\u5206\u9694\u7684\u53c2\u6570(\u5982\u679c\u6709\u7684\u8bdd)\u3002<span style=\"color: #0000ff;\">\u547d\u4ee4\u884c\u662f\u5c0f\u5199\u7684\u5e76\u4e14\u5927\u5c0f\u5199\u654f\u611f<\/span>\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #008000;\"><strong>\u8fc7\u671f\u65f6\u9650(Expiration times)<br \/>\n<\/strong><\/span>---------------------------------------------------------<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0 \u5ba2\u6237\u7aef\u53d1\u9001\u7ed9\u670d\u52a1\u5668\u7684\u67d0\u4e9b\u547d\u4ee4\u53ef\u4ee5\u5e26\u6709(\u4e00\u4e2a\u6570\u636e\u9879\u6216\u4e00\u4e2a\u5ba2\u6237\u7aef\u8bf7\u6c42\u64cd\u4f5c\u7684)\u8fc7\u671f\u65f6\u9650\u4fe1\u606f\u3002\u5728\u8fd9\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53d1\u9001\u7684\u5b9e\u9645\u503c\u53ef\u4ee5\u662fUnix\u65f6\u95f4(\u81ea1970\u5e741\u67081\u65e5\u81f3\u4eca\u7684\u79d2\u6570\uff0c32\u4f4d\u503c)\uff0c\u6216\u662f\u4ece\u5f53\u524d\u8d77\u7684\u79d2\u6570\u3002<span style=\"color: #0000ff;\">\u5728\u540e\u4e00\u79cd\u60c5\u51b5\u4e0b\uff0c\u79d2\u6570\u4e0d\u80fd\u8d85\u8fc760*60*24*30(30\u5929\u7684\u79d2\u6570)<\/span>\u3002\u5982\u679c\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u6570\u503c\u8d85\u8fc7\u6b64\u503c\uff0c\u670d\u52a1\u5668\u4f1a\u8ba4\u4e3a\u5b83\u662f\u4e00\u4e2aUnix\u65f6\u95f4\u503c\uff0c\u800c\u4e0d\u662f\u8ddd\u5f53\u524d\u65f6\u95f4\u7684\u504f\u79fb\u503c\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #008000;\"><strong>\u51fa\u9519\u5b57\u7b26\u4e32(Error strings)<br \/>\n<\/strong><\/span>---------------------------------------------------------<\/p>\n<p style=\"text-align: left;\">\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u6bcf\u4e00\u4e2a\u547d\u4ee4\uff0c\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u53d1\u9001\u4e00\u4e2a\u51fa\u9519\u5b57\u7b26\u4e32\u4f5c\u4e3a\u54cd\u5e94\u3002\u8fd9\u4e9b\u51fa\u9519\u5b57\u7b26\u4e32\u6709\u4e09\u79cd\u7c7b\u578b\uff1a<\/p>\n<p style=\"text-align: left;\"><strong>\"ERROR\/r\/n\"<br \/>\n<\/strong>\u8868\u793a\u5ba2\u6237\u7aef\u53d1\u9001\u4e86\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u547d\u4ee4<\/p>\n<p style=\"text-align: left;\"><strong>\"CLIENT_ERROR &lt;error&gt;\/r\/n\"<br \/>\n<\/strong>\u8868\u793a\u5ba2\u6237\u7aef\u7684\u8f93\u5165\u884c\u51fa\u73b0\u4e86\u67d0\u4e9b\u9519\u8bef\uff0c\u4f8b\u5982\uff0c\u8f93\u5165\u884c\u6ca1\u6709\u9075\u4ece\u534f\u8bae\u3002&lt;error&gt;\u662f\u4e00\u4e2a\u53ef\u8bfb\u7684\u9519\u8bef\u63cf\u8ff0\u3002<\/p>\n<p style=\"text-align: left;\"><strong>\"SERVER_ERROR &lt;error&gt;\/r\/n\"<br \/>\n<\/strong>\u8868\u793a\u670d\u52a1\u5668\u7684\u4e00\u4e9b\u9519\u8bef\u5bfc\u81f4\u670d\u52a1\u5668\u4e0d\u80fd\u6267\u884c\u8be5\u547d\u4ee4\u3002&lt;error&gt;\u662f\u4e00\u4e2a\u53ef\u8bfb\u7684\u51fa\u9519\u63cf\u8ff0\u5b57\u7b26\u4e32\u3002\u5982\u679c\u51fa\u73b0\u4e86\u4f7f\u670d\u52a1\u5668\u65e0\u6cd5\u7ee7\u7eed\u4e3a\u5ba2\u6237\u7aef\u670d\u52a1\u7684\u670d\u52a1\u5668\u9519\u8bef(\u8fd9\u4e00\u822c\u4e0d\u5e94\u53d1\u751f),<span style=\"color: #0000ff;\">\u670d\u52a1\u5668\u5728\u53d1\u9001\u5b8c\u9519\u8bef\u5b57\u7b26\u4e32\u540e\u4f1a\u5173\u95ed\u8fde\u63a5\u3002\u8fd9\u662f\u670d\u52a1\u5668\u7aef\u5173\u95ed\u5ba2\u6237\u7aef\u8fde\u63a5\u7684\u552f\u4e00\u60c5\u51b5<\/span>\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #0000ff;\">\u5728\u4ee5\u4e0b\u7684\u6bcf\u4e2a\u547d\u4ee4\u63cf\u8ff0\u4e2d\uff0c\u9519\u8bef\u884c\u4e0d\u4f1a\u518d\u6b21\u63d0\u53ca\uff0c\u4f46\u5ba2\u6237\u7aef\u5fc5\u987b\u8003\u8651\u5230\u5b83\u4eec\u53ef\u80fd\u4f1a\u51fa\u73b0<\/span>\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #008000;\"><strong>\u5b58\u50a8\u547d\u4ee4<br \/>\n<\/strong><\/span>---------------------------------------------------------<br \/>\n\u9996\u5148\uff0c\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a\u7c7b\u4f3c\u8fd9\u6837\u7684\u547d\u4ee4\u884c\uff1a<\/p>\n<p style=\"text-align: left;\"><strong>&lt;command name&gt; \u00a0&lt;key&gt; &lt;flags&gt; &lt;exptime&gt; &lt;bytes&gt; [noreply]\/r\/n<br \/>\n<\/strong><strong>cas\u00a0&lt;key&gt; &lt;flags&gt; &lt;exptime&gt; &lt;bytes&gt; <span style=\"color: #ff00ff;\">&lt;cas unique&gt;<\/span> [noreply]\/r\/n<br \/>\n<\/strong>&lt;command&gt; \u6709 \"set \", \"add \", \"replace\", \"append\" \u548c \"prepend\"\uff1a<\/p>\n<p style=\"text-align: left;\">\"set\" <span style=\"color: #0000ff;\"> \u5b58\u50a8<\/span>\u8fd9\u4e2a\u6570\u636e\u3002<br \/>\n\"add\" \u53ea\u5728\u670d\u52a1\u5668<span style=\"color: #0000ff;\">\u6ca1\u6709\u5b58\u50a8\u8be5Key\u7684\u6570\u636e\u7684\u60c5\u51b5\u4e0b<\/span>\u5b58\u50a8\u8fd9\u4e2a\u6570\u636e\u3002<br \/>\n\"replace\" \u53ea\u5728\u670d\u52a1\u5668<span style=\"color: #0000ff;\">\u5b58\u50a8\u4e86\u8be5Key\u7684\u6570\u636e\u7684\u60c5\u51b5\u4e0b<\/span>\u5b58\u50a8\u8fd9\u4e2a\u6570\u636e\u3002<br \/>\n\"append\" \u4e3a\u4e00\u4e2a<span style=\"color: #0000ff;\">\u5df2\u5b58\u5728\u7684Key\u7684\u6570\u636e<\/span>\u5c3e\u90e8\u8ffd\u52a0\u8be5\u90e8\u5206\u7684\u6570\u636e\u3002<br \/>\n\"prepend\" \u4e3a\u4e00\u4e2a<span style=\"color: #0000ff;\">\u5df2\u5b58\u5728\u7684Key\u7684\u6570\u636e<\/span>\u5728\u5934\u90e8\u6dfb\u52a0\u8be5\u90e8\u5206\u7684\u6570\u636e\u3002<\/p>\n<p><span style=\"color: #0000ff;\">append\u548cprepend\u547d\u4ee4\u4e0d\u63a5\u53d7flag\u548cexptime<\/span>\uff0c\u5b83\u4eec\u66f4\u65b0\u5df2\u5b58\u6570\u636e\uff0c\u800c\u5ffd\u7565\u65b0\u7684flag\u548cexptime\u8bbe\u7f6e\u3002<br \/>\ncas\u662f\u4e00\u4e2a\u68c0\u67e5\u5e76\u8bbe\u7f6e\u7684\u64cd\u4f5c\uff0c\u610f\u601d\u662f\"\u5b58\u50a8\u8fd9\u4e2a\u6570\u636e\uff0c\u4f46\u53ea\u6709\u5728<span style=\"color: #ff00ff;\">\u81ea\u6211\u4e0a\u6b21\u53d6\u5f97\u8be5\u6570\u636e\u4ee5\u6765\u6ca1\u6709\u4eba\u518d\u66f4\u65b0\u8be5\u6570\u636e<\/span>\u7684\u60c5\u51b5\u4e0b\u624d\u5b58\u50a8\"\u3002<\/p>\n<p>&lt;key&gt;\uff1a\u5ba2\u6237\u7aef\u8981\u6c42\u5b58\u50a8\u7684\u6570\u636e\u952e\u503c<br \/>\n&lt;flags&gt;\uff1a\u4e00\u4e2a\u53ef\u9009\u768416\u4f4d\u65e0\u7b26\u4e32\u6574\u6570(\u4ee5\u5341\u8fdb\u5236\u5f62\u5f0f\u5199\u5165)\uff0c<span style=\"color: #0000ff;\">\u670d\u52a1\u5668\u4f1a\u5728\u53d6\u56de\u8be5\u6570\u636e\u9879\u65f6\u4e00\u540c\u539f\u6837\u8fd4\u56de<\/span>\u3002\u5ba2\u6237\u7aef\u53ef\u4ee5\u5c06\u5176\u7528\u4f5c\u4e00\u4e2a\u4f4d\u5b58\u50a8\u57df\u6765\u5b58\u50a8\u4e00\u4e9b\u6570\u636e\u7279\u5f81\u4fe1\u606f\u3002<span style=\"color: #0000ff;\">\u8fd9\u4e2a\u57df\u5bf9\u670d\u52a1\u5668\u662f\u900f\u660e\u7684<\/span>\u3002\u6ce8\u610f\u5728memcached 1.2.1\u548c\u66f4\u9ad8\u7248\u672c\uff0cflags\u53ef\u4ee5\u662f32\u4f4d\u7684\uff0c\u800c\u4e0d\u662f16\u4f4d\uff0c\u4e0d\u8fc7\u4f60\u6216\u8bb8\u4f1a\u9650\u5236\u4f7f\u752816\u4f4d\u6765\u517c\u5bb9\u65e7\u7248\u672c\u3002<br \/>\n&lt;exptime&gt;\uff1a\u8fc7\u671f\u65f6\u95f4\u3002\u5982\u679c\u8bbe\u7f6e\u4e3a0,<br \/>\n\u5219\u8be5\u6570\u636e\u9879\u6c38\u4e0d\u8fc7\u671f(\u5c3d\u7ba1\u5982\u6b64\uff0c\u5b83\u8fd8\u662f\u53ef\u80fd\u4ece\u7f13\u5b58\u4e2d\u88ab\u5220\u9664\u6389\uff0c\u4ee5\u4e3a\u5176\u5b83\u6570\u636e\u9879\u817e\u51fa\u7a7a\u95f4)\u3002\u5982\u679c\u5b83\u4e0d\u4e3a0(\u6216\u8005\u662fUnix<br \/>\n\u65f6\u95f4\uff0c\u6216\u8005\u662f\u76f8\u5f53\u4e8e\u5f53\u524d\u65f6\u95f4\u7684\u504f\u79fb\u503c)\uff0c \u5b83\u53ef\u4ee5\u4fdd\u8bc1\u5728\u8fc7\u671f\u65f6\u95f4\u5230\u540e\uff0c\u5ba2\u6237\u7aef\u4e0d\u4f1a\u67e5\u8be2\u5230\u8be5\u6570\u636e(\u7528\u670d\u52a1\u5668\u65f6\u95f4\u5ea6\u91cf)\u3002<br \/>\n&lt;bytes&gt;\uff1a\u540e\u8ddf\u6570\u636e\u7684\u5b57\u8282\u957f\u5ea6\uff0c<span style=\"color: #0000ff;\">\u6ca1\u6709\u8ba1\u7b97\u4f5c\u4e3a\u5206\u9694\u7b26\u7684\/r\/n<\/span>. &lt;bytes&gt;\u53ef\u80fd\u4e3a0 (\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5b83\u540e\u8ddf\u4e00\u4e2a\u7a7a\u7684\u6570\u636e\u5757)\u3002<br \/>\n&lt;cas unique&gt; \u662f\u4e00\u4e2a\u4e0e\u5df2\u5b58\u6570\u636e\u6761\u76ee\u76f8\u5173\u7684\u5168\u5c40\u552f\u4e00\u768464\u4f4d\u6570\u3002<span style=\"color: #0000ff;\">\u5ba2\u6237\u7aef\u5e94\u8be5\u4f7f\u7528\"gets\"\u547d\u4ee4\u8fd4\u56de\u7684\u8be5\u503c<\/span>\u6765\u8fdb\u884c\"cas\"\u66f4\u65b0\u64cd\u4f5c\u3002<br \/>\n\"noreply\"\u00a0 \u53ef\u9009\u9879<span style=\"color: #0000ff;\">\u6307\u793a\u670d\u52a1\u5668\u4e0d\u8981\u56de\u9001\u54cd\u5e94<\/span>\u3002\u6ce8\u610f\uff1a\u5982\u679c\u8bf7\u6c42\u884c\u683c\u5f0f\u9519\u8bef\uff0c\u670d\u52a1\u5668\u4e0d\u4e00\u5b9a\u80fd\u53ef\u9760\u5730\u89e3\u6790\"noreply\"\u9009\u9879\u3002\u5728\u6b64\u79cd\u60c5\u51b5\u4e0b\uff0c\u5b83\u53ef\u80fd\u4f1a\u53d1\u9001\u9519\u8bef\u4fe1\u606f\u7ed9\u5ba2\u6237\u7aef\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u6ca1\u6709\u8bfb\u53d6\u8be5\u4fe1\u606f\u7684\u8bdd\u4f1a\u5e26\u6765\u95ee\u9898\u3002\u5ba2\u6237\u7aef\u5e94\u8be5\u53ea\u6784\u9020\u5408\u6cd5\u7684\u8bf7\u6c42\u3002<br \/>\n\u5728\u6b64\u884c\u540e\uff0c\u5ba2\u6237\u7aef\u53d1\u9001\u6570\u636e\u5757\u3002<br \/>\n&lt;data block&gt;<br \/>\n&lt;data block&gt;\u662f\u4e00\u4e2a\u4efb\u610f\u76848\u4f4d\u5b57\u8282\u6570\u636e\u5757\uff0c\u957f\u5ea6\u4e3a\u524d\u9762\u4e00\u884c\u6240\u6307\u5b9a\u7684\u6570\u636e\u957f\u5ea6&lt;bytes&gt;\u3002<\/p>\n<p style=\"text-align: left;\">\u5728\u53d1\u9001\u4e86\u8be5\u547d\u4ee4\u884c\u548c\u6570\u636e\u5757\u540e\uff0c\u5ba2\u6237\u7aef\u7b49\u5f85\u53ef\u80fd\u7684\u54cd\u5e94\uff1a<br \/>\n\"<strong>STORED\/r\/n<\/strong>\",\u00a0 \u6307\u793a\u6210\u529f<br \/>\n\"<strong>NOT_STORED\/r\/n<\/strong>\" \u6307\u793a\u6570\u636e\u6ca1\u6709\u88ab\u5b58\u50a8\uff0c\u4f46\u4e0d\u662f\u51fa\u9519\u3002\u8fd9\u901a\u5e38\u662f\u8868\u793a\"add\"\u6216\"replace\"\u7684\u6761\u4ef6\u6ca1\u6709\u6ee1\u8db3\u3002<br \/>\n\"<strong>EXIST\/r\/n<\/strong>\" \u6307\u793a\u4f7f\u7528\"cas\"\u547d\u4ee4\u6240\u8981\u66f4\u65b0\u7684\u6570\u636e\u81ea\u4f60\u4e0a\u6b21\u53d6\u8fc7\u540e\u5df2\u7ecf\u8fc7\u4fee\u6539\u3002<br \/>\n\"<strong>NO_FOUND\/r\/n<\/strong>\" \u6307\u793a\u4f60\u7528\"cas\"\u547d\u4ee4\u8981\u4fee\u6539\u7684\u6570\u636e\u5e76\u4e0d\u5b58\u5728\u3002<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #008000;\">\u6570\u636e\u63d0\u53d6\u547d\u4ee4<br \/>\n<\/span><\/strong>---------------------------------------------------------<br \/>\n\u6570\u636e\u63d0\u53d6\u547d\u4ee4\u6709\"get\"\u548c\"gets\"\uff0c\u5982\uff1a<br \/>\n<strong>get &lt;key&gt;*\/r\/n<br \/>\n<\/strong><strong>gets &lt;key&gt;*\/r\/n<br \/>\n<\/strong>&lt;key&gt;* \u8868\u793a\u4e00\u4e2a\u6216\u591a\u4e2a\u7531\u7a7a\u683c\u5206\u9694\u7684key\u4e32<br \/>\n\u5728\u8fd9\u4e2a\u547d\u4ee4\u540e\uff0c\u5ba2\u6237\u7aef\u671f\u5f85\u96f6\u4e2a\u6216\u591a\u4e2a\u6570\u636e\u9879\uff0c\u6bcf\u4e2a\u63a5\u53d7\u5230\u7684\u6570\u636e\u9879\u662f\u4e00\u4e2a\u6587\u672c\u884c\uff0c\u540e\u8ddf\u6570\u636e\u5757\u3002\u5f53\u6240\u6709\u6570\u636e\u9879\u4f20\u9001\u5b8c\u540e\uff0c\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2a\"END\/r\/n\"\u6307\u793a\u54cd\u5e94\u7684\u7ec8\u6b62\u3002<\/p>\n<p style=\"text-align: left;\">\u6bcf\u4e00\u4e2a\u7531\u670d\u52a1\u5668\u53d1\u9001\u7684\u6570\u636e\u9879\u5982\u4e0b\u6240\u793a\uff1a<br \/>\n<strong>VALUE &lt;key&gt; &lt;flags&gt; &lt;bytes&gt; [&lt;cas unique&gt;]\/r\/n<br \/>\n<\/strong><strong>&lt;data block&gt;\/r\/n<br \/>\n<\/strong>&lt;key&gt;\uff1a \u6570\u636e\u9879\u7684Key\u503c<br \/>\n&lt;flags&gt;\uff1a\u7531\u5b58\u50a8\u547d\u4ee4\u8bbe\u7f6e\u7684flags<br \/>\n&lt;bytes&gt;\uff1a\u662f\u540e\u8ddf\u6570\u636e\u5757\u7684\u957f\u5ea6\uff0c\u6ca1\u6709\u5305\u62ec\u4f5c\u4e3a\u5206\u9694\u7b26\u7684\/r\/n<br \/>\n&lt;cas unique&gt;\uff1a\u662f\u4e00\u4e2a64\u4f4d\u6574\u6570\uff0c\u552f\u4e00\u6807\u8bc6\u4e86\u4e00\u4e2a\u7279\u5b9a\u7684\u6570\u636e\u9879\u3002<br \/>\n&lt;data block&gt;\uff1a\u6570\u636e\u9879\u7684\u6570\u636e<br \/>\n\u5982\u679c\u6709\u67d0\u4e9b\u5728\u8bf7\u6c42\u4e2d\u51fa\u73b0\u7684Key\u6ca1\u6709\u670d\u52a1\u5668\u6ca1\u6709\u5728\u6570\u636e\u9879\u5217\u8868\u4e2d\u56de\u9001\uff0c\u8868\u793a\u670d\u52a1\u5668\u6ca1\u6709\u8fd9\u4e9bKey\u7684\u6570\u636e\u9879(\u56e0\u4e3a\u5b83\u4eec\u6ca1\u6709\u88ab\u5b58\u50a8\u8fc7\uff0c\u6216\u8005\u5220\u9664\u4ee5\u4e3a\u5176\u5b83\u6570\u636e\u9879\u817e\u51fa\u7a7a\u95f4\uff0c\u6216\u8005\u8fc7\u671f\u4e86\uff0c\u53c8\u6216\u8005\u88ab\u5ba2\u6237\u7aef\u7684delete \u64cd\u4f5c\u5220\u9664\u4e86)\u3002<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #008000;\">\u5220\u9664<br \/>\n<\/span><\/strong>---------------------------------------------------------<\/p>\n<p style=\"text-align: left;\">delete\u547d\u4ee4\u5141\u8bb8\u663e\u5f0f\u5220\u9664\u6570\u636e\u9879\uff1a<br \/>\n<strong>delete &lt;key&gt; [noreply]\/r\/n<br \/>\n<\/strong>&lt;key&gt;\uff1a\u5ba2\u6237\u7aef\u8981\u6c42\u670d\u52a1\u5668\u5220\u9664\u7684\u6570\u636e\u9879\u7684key\u503c<br \/>\n\"norply\"\uff1a\u53ef\u9009\u53c2\u6570\u6307\u793a\u670d\u52a1\u5668\u4e0d\u8981\u56de\u9001\u54cd\u5e94\u3002\u53c2\u89c1\u5b58\u50a8\u547d\u4ee4\u4e2d\u5bf9\u683c\u5f0f\u9519\u8bef\u8bf7\u6c42\u7684\u8bf4\u660e\u3002<br \/>\n\u8fd9\u4e2a\u547d\u4ee4\u7684\u54cd\u5e94\u884c\u53ef\u80fd\u662f\u4ee5\u4e0b\u7684\u4e00\u4e2a\uff1a<br \/>\n\"<strong>DELETED\/r\/n<\/strong>\"\u00a0 \u6307\u793a\u6210\u529f<br \/>\n\"<strong>NOT_FOUND\/r\/n<\/strong>\" \u6307\u793aKey\u6240\u6307\u7684\u6570\u636e\u9879\u4e0d\u5b58\u5728\u3002<br \/>\n\u53c2\u89c1\u4e0b\u6587\u7684\"flush_all\"\u547d\u4ee4\uff0c\u8be5\u547d\u4ee4\u4f7f\u6240\u6709\u6570\u636e\u9879\u7acb\u5373\u65e0\u6548\u3002<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #008000;\">\u9012\u589e\/\u9012\u51cf<br \/>\n<\/span><\/strong>---------------------------------------------------------<br \/>\nincr \u548cdecr\u547d\u4ee4\u7528\u6765\u539f\u5730\u6539\u53d8\u67d0\u4e9b\u6570\u636e\u9879\uff0c\u9012\u589e\u6216\u9012\u51cf\u5176\u503c\u3002<span style=\"color: #0000ff;\">\u6570\u636e\u9879\u7684\u6570\u636e\u88ab\u770b\u4f5c\u662f64\u4f4d\u7684\u65e0\u7b26\u53f7\u5341\u8fdb\u5236\u6574\u6570<\/span>\u3002\u5982\u679c\u5f53\u524d\u7684\u6570\u636e\u503c\u4e0d\u80fd\u8f6c\u6362\u4e3a\u8fd9\u6837\u4e00\u79cd\u8868\u793a\uff0c\u5219 incr\/decr\u547d\u4ee4\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef(memcached &lt;= 1.2.6\u5c06\u8fd9\u79cd\u4f2a\u503c(bogus value)\u770b\u6210\u662f0\uff0c \u8fd9\u4f1a\u5bfc\u81f4\u6df7\u4e71)\u3002\u53e6\u5916\uff0c\u8fd9\u4e2a<span style=\"color: #0000ff;\">\u6570\u636e\u9879\u5fc5\u987b\u5df2\u5b58\u5728<\/span>\u4f7f\u5f97 incr\/decr\u80fd\u5de5\u4f5c\u3002\u8fd9\u4e9b\u547d\u4ee4\u4e0d\u4f1a\u5047\u8bbe\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684key\u6570\u503c\u4e3a0\uff0c\u800c\u662f\u4f1a\u5931\u8d25\u3002<\/p>\n<p>\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u547d\u4ee4\u884c\u5982\u4e0b\uff1a<br \/>\n<strong>incr &lt;key&gt; &lt;value&gt; [noreply]\/r\/n<br \/>\n<\/strong>\u6216<br \/>\n<strong>desc &lt;key&gt; &lt;value&gt; [noreply]\/r\/n<br \/>\n<\/strong><span style=\"white-space: pre;\"><span style=\"white-space: normal;\">&lt;key&gt;\uff1a\u5ba2\u6237\u7aef\u60f3\u6539\u53d8\u7684\u6570\u636e\u9879\u7684key\u503c<br \/>\n<\/span><\/span><span style=\"white-space: pre;\"><span style=\"white-space: normal;\">&lt;value&gt;\uff1a\u5ba2\u6237\u7aef\u8981\u5bf9\u6570\u636e\u9879\u9012\u589e\/\u9012\u51cf\u7684\u503c\u3002\u5b83\u662f\u4e00\u4e2a64\u4f4d\u7684\u65e0\u7b26\u53f7\u5341\u8fdb\u5236\u6574\u6570\u3002<br \/>\n<\/span><\/span><span style=\"white-space: pre;\"><span style=\"white-space: normal;\">\"norply\"\uff1a\u53ef\u9009\u53c2\u6570\u6307\u793a\u670d\u52a1\u5668\u4e0d\u8981\u56de\u9001\u54cd\u5e94\u3002\u53c2\u89c1\u5b58\u50a8\u547d\u4ee4\u4e2d\u5bf9\u683c\u5f0f\u9519\u8bef\u8bf7\u6c42\u7684\u8bf4\u660e\u3002<br \/>\n<\/span><\/span>\u54cd\u5e94\u53ef\u80fd\u662f\u4ee5\u4e0b\u4e4b\u4e00\uff1a<br \/>\n<strong>\"NOT_FOUND\/r\/n\"<\/strong> \u6307\u793a\u8fd9\u4e2a\u6570\u636e\u9879\u627e\u4e0d\u5230\u3002<br \/>\n<strong>\"&lt;value&gt;\/r\/n\"<\/strong>, \u5176\u4e2d&lt;value&gt;\u662f\u8fd9\u4e2a\u6570\u636e\u9879\u5728\u7ecf\u8fc7\u9012\u589e\/\u9012\u51cf\u64cd\u4f5c\u540e\u7684\u65b0\u503c\u3002<\/p>\n<p style=\"text-align: left;\">\u6ce8\u610f: \u5982\u679c\"desc\"\u547d\u4ee4\u6355\u83b7\u5230\u4e0b\u6ea2\u5f02\u5e38\uff1a<span style=\"color: #0000ff;\">\u5982\u679c\u5ba2\u6237\u7aef\u5c1d\u8bd5\u5c06\u4e00\u4e2a\u503c\u51cf\u5c11\u5230\u5c0f\u4e8e0\uff0c \u65b0\u503c\u5c06\u4f1a\u662f0. \"incr\"\u547d\u4ee4\u7684\u4e0a\u6ea2\u5f02\u5e38\u4f1a\u7ecf64\u4f4d\u56de\u7ed5<\/span>(wrap around the 64 bit mark)\u3002\u3010<span style=\"color: #99cc00;\">\u8bd1\u8005\u6ce8\uff1a\u5373 (\u539f\u503c+value) &amp; 0xffffffffffffffff<\/span>\u3011.<\/p>\n<p style=\"text-align: left;\">\u540c\u6837\u8981\u6ce8\u610f\u7684\u662f<span style=\"color: #0000ff;\">\u51cf\u5c11\u4e00\u4e2a\u6570\u503c\u4f7f\u5f97\u5176\u5b9e\u9645\u957f\u5ea6\u51cf\u5c11\u4e86\uff0c\u4f46\u5e76\u4e0d\u4fdd\u8bc1\u5176\u8fd4\u56de\u957f\u5ea6\u503c\u7684\u51cf\u5c11\u3002\u8fd9\u4e2a\u6570\u503c\u53ef\u80fd\u4f1a\u5728\u5c3e\u90e8\u52a0\u4e0a\u7a7a\u683c<\/span>\uff0c\u4f46\u8fd9\u7eaf\u5c5e\u4e00\u4e2a\u5b9e\u73b0\u4e0a\u7684\u4f18\u5316\u624b\u6bb5\uff0c\u6240\u4ee5\u4f60\u4e0d\u80fd\u4f9d\u8d56\u5b83\u3002<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #008000;\">\u7edf\u8ba1<br \/>\n<\/span><\/strong>---------------------------------------------------------<br \/>\n\"stats\" \u547d\u4ee4\u7528\u4e8e\u67e5\u8be2\u670d\u52a1\u5668\u7ef4\u62a4\u7684\u4e00\u4e9b\u7edf\u8ba1\u6570\u636e\u548c\u5185\u90e8\u6570\u636e\u3002\u5b83\u6709\u4e24\u79cd\u5f62\u5f0f\u3002\u4e0d\u7528\u53c2\u6570\uff1a<br \/>\n<strong>stats\/r\/n<br \/>\n<\/strong>\u5b83\u4f7f\u670d\u52a1\u5668\u8f93\u51fa\u5e38\u89c4\u7edf\u8ba1\u548c\u8bbe\u7f6e\uff0c\u4e0b\u6587\u4e2d\u6709\u8bf4\u660e\u3002 \u53e6\u4e00\u79cd\u5f62\u5f0f\u5e26\u6709\u53c2\u6570\uff1a<br \/>\n<strong>stats &lt;args&gt;\/r\/n<br \/>\n<\/strong>\u6839\u636e &lt;args&gt; ,\u670d\u52a1\u5668\u4f1a\u8fd4\u56de\u4e0d\u540c\u7684\u5185\u90e8\u6570\u636e\u3002\u53c2\u6570\u7684\u7c7b\u578b\u548c\u53d1\u9001\u7684\u6570\u636e\u6ca1\u6709\u5728\u8fd9\u4e2a\u7248\u672c\u7684\u534f\u8bae\u4e2d\u8bf4\u660e\uff0c\u8fd9\u6709\u5229\u4e8ememcache\u5f00\u53d1\u8005(\u5bf9\u4ee3\u7801)\u8fdb\u884c\u66f4\u6539\u3002<\/p>\n<p style=\"text-align: left;\"><strong>\u5e38\u89c4\u7edf\u8ba1<br \/>\n<\/strong>\u5f53\u63a5\u6536\u5230\u4e0d\u5e26\u53c2\u6570\u7684\"stats\"\u547d\u4ee4\u540e\uff0c \u670d\u52a1\u5668\u53d1\u9001\u82e5\u5e72\u884c\u6570\u636e\uff0c\u5982\u4e0b\u6240\u793a\uff1a<br \/>\n<strong>STAT &lt;name&gt; &lt;value&gt;\/r\/n<br \/>\n<\/strong>\u670d\u52a1\u5668\u7528\u4ee5\u4e0b\u884c\u4f5c\u4e3a\u7ec8\u7ed3\uff1a<br \/>\n<strong> END\/r\/n<br \/>\n<\/strong>\u5728\u6bcf\u4e00\u884c\u7edf\u8ba1\u6570\u636e\u4e2d\uff0c &lt;name&gt;\u662f\u7edf\u8ba1\u9879\u7684\u540d\u79f0\uff0c&lt;value&gt;\u662f\u7edf\u8ba1\u503c\u3002\u5728\u4ee5\u4e0b\u7684\u5217\u8868\u4e2d\u6709\u5bf9\"stats\"\u547d\u4ee4\u54cd\u5e94\u7684\u6240\u6709\u7edf\u8ba1\u540d\u79f0\uff0c\u548c\u8fd9\u4e2a\u7edf\u8ba1\u9879\u7684\u7c7b\u578b\uff0c\u4ee5\u53ca\u8fd9\u4e2a\u503c\u7684\u610f\u4e49\u3002<\/p>\n<p style=\"text-align: left;\">\u5728\u4e0b\u9762\u7684\u7c7b\u578b\u5217\u4e2d\uff0c\"32u\" \u8868\u793a32\u4f4d\u65e0\u7b26\u53f7\u6574\u6570\uff0c\"64u\"\u8868\u793a64\u4f4d\u65e0\u7b26\u53f7\u6574\u6570\uff0c\"32u.32.u\"\u8868\u793a\u4e24\u4e2a\u7531\u5206\u53f7\u5206\u9694\u768432\u4f4d\u65e0\u7b26\u53f7\u6574\u6570(\u5f53\u4f5c\u662f\u6d6e\u70b9\u6570)\u3002<\/p>\n<table class=\"MsoTableGrid alignleft\" style=\"width: 582px; height: 1646px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u540d\u79f0<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u7c7b\u578b<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u542b\u4e49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">pid<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u670d\u52a1\u5668\u8fdb\u7a0b\u7684<span lang=\"EN-US\">id<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">uptime<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u81ea\u670d\u52a1\u5668\u542f\u52a8\u4ee5\u6765\u7684\u79d2\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">time<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u670d\u52a1\u5668\u4e0a\u7684<span lang=\"EN-US\">UNIX<\/span>\u65f6\u95f4<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">version<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">string<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u670d\u52a1\u5668\u7684\u7248\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">pointer_size<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u4e3b\u673a\u64cd\u4f5c\u7cfb\u7edf\u7684\u9ed8\u8ba4\u6307\u9488\u957f\u5ea6<span lang=\"EN-US\">(<\/span>\u4e00\u822c\u662f<span lang=\"EN-US\">32<\/span>\u6216<span lang=\"EN-US\">64)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">rusage_user<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u.32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u8fdb\u7a0b\u7528\u6237\u7a7a\u95f4\u7684\u7d2f\u8ba1\u65f6\u957f<span lang=\"EN-US\">(<\/span>\u79d2\uff1a\u5fae\u79d2<span lang=\"EN-US\">)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">rusage_system<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u.32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u8fdb\u7a0b\u5185\u6838\u7a7a\u95f4\u7684\u7d2f\u8ba1\u65f6\u957f<\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">(<\/span>\u79d2\uff1a\u5fae\u79d2<span lang=\"EN-US\">)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">curr_items<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px; color: #0000ff;\">\u5f53\u524d\u5b58\u50a8\u7684\u6570\u636e\u9879\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">total_items<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span style=\"color: #0000ff;\">\u81ea\u670d\u52a1\u5668\u542f\u52a8\u4ee5\u6765\u5b58\u50a8\u7684\u6570\u636e\u9879\u603b\u6570<\/span><span lang=\"EN-US\">(<\/span><span style=\"color: #99cc00;\">\u8bd1\u8005\u6ce8\uff1a\u5176\u5b9e\u5c31\u662f\u6210\u529f\u6267\u884c\u5b58\u50a8\u547d\u4ee4<span lang=\"EN-US\">(STORED)<\/span>\u7684\u8ba1\u6570<\/span><span lang=\"EN-US\">)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">bytes<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5f53\u524d\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u9879\u6240\u7528\u7684\u5b57\u8282\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">curr_connections<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6253\u5f00\u7684\u8fde\u63a5\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">total_connections<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u81ea\u670d\u52a1\u5668\u542f\u52a8\u4ee5\u6765\u7684\u6253\u5f00\u7684\u8fde\u63a5\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">connection_structures<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u670d\u52a1\u5668\u5206\u914d\u7684\u8fde\u63a5\u7ed3\u6784\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cmd_get<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u63d0\u53d6\u547d\u4ee4\u7684\u7d2f\u8ba1\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cmd_set<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5b58\u50a8\u547d\u4ee4\u7684\u7d2f\u8ba1\u6570\u76ee<span lang=\"EN-US\">(<\/span>\u8bd1\u8005\u6ce8\uff1a\u4e5f\u5305\u62ec<span lang=\"EN-US\">NOT_STORED<\/span>\u7684<span lang=\"EN-US\">)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">get_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px; color: #0000ff;\">\u8bf7\u6c42\u5e76\u627e\u5230\u7684\u6570\u636e\u9879\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">get_missed<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px; color: #0000ff;\">\u8bf7\u6c42\u4f46\u627e\u4e0d\u5230\u7684\u6570\u636e\u9879\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">delete_missed<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5220\u9664\u65e0\u6548<span lang=\"EN-US\">key<\/span>\u7684\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">delete_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u4f7f\u5f97\u6570\u636e\u9879\u5220\u9664\u7684\u5220\u9664\u8bf7\u6c42\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">incr_missed<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6ca1\u6709\u627e\u5230<span lang=\"EN-US\">key<\/span>\u7684<span lang=\"EN-US\">incr<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">incr_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6210\u529f\u7684<span lang=\"EN-US\">incr<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">decr_misses<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6ca1\u6709\u627e\u5230<span lang=\"EN-US\">key<\/span>\u7684<span lang=\"EN-US\">decr<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">decr_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6210\u529f\u7684<span lang=\"EN-US\">decr<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cas_misses<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6ca1\u6709\u627e\u5230<span lang=\"EN-US\">key<\/span>\u7684<span lang=\"EN-US\">CAS<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cas_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6210\u529f<span lang=\"EN-US\">CAS<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cas_badval<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">key<\/span>\u5b58\u5728\u4f46<span lang=\"EN-US\">CAS<\/span>\u503c\u4e0d\u5339\u914d\u7684<span lang=\"EN-US\">CAS<\/span>\u8bf7\u6c42\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">auth_cmds<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u8ba4\u8bc1\u547d\u4ee4\u5904\u7406\u7684\u6b21\u6570\uff0c\u5305\u62ec\u6210\u529f\u548c\u5931\u8d25<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">auth_errors<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u8eab\u4efd\u8ba4\u8bc1\u5931\u8d25\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">evictions<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px; color: #0000ff;\">\u4ece\u7f13\u5b58\u4e2d\u79fb\u9664\u6570\u636e\u9879\u6765\u4e3a\u65b0\u6570\u636e\u9879\u817e\u51fa\u7a7a\u95f4\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">reclaimed<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px; color: #0000ff;\">\u5229\u7528\u4e00\u4e2a\u8fc7\u671f\u6570\u636e\u6761\u76ee\u6765\u5b58\u50a8\u65b0\u6570\u636e\u6761\u76ee\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">bytes_read<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u672c\u670d\u52a1\u5668\u4ece\u7f51\u7edc\u4e2d\u8bfb\u53d6\u7684\u5b57\u8282\u603b\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">bytes_written<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u672c\u670d\u52a1\u5668\u53d1\u9001\u5230\u7f51\u7edc\u7684\u5b57\u8282\u603b\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">limit_maxbytes<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u672c\u670d\u52a1\u5668\u5141\u8bb8\u4f7f\u7528\u7684\u5185\u5b58\u5b57\u8282\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">threads<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u8bf7\u6c42\u7684\u5de5\u4f5c\u7ebf\u7a0b\u6570\uff08\u53c2\u89c1<span lang=\"EN-US\"> doc\/threads.txt<\/span>\uff09<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">conn_yields<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">64u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u7531\u4e8e\u8fbe\u5230-R\u9009\u9879\u6307\u5b9a\u6570\u76ee\u7684\u9650\u5236\uff0c\u4e00\u4e2a\u8fde\u63a5\u7684\u64cd\u4f5c\u4e3b\u52a8\u653e\u5f03\u8ba9\u7ed9\u53e6\u4e00\u4e2a\u8fde\u63a5\u7684\u6570\u76ee<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\"><strong>\u8bbe\u7f6e\u9879\u7edf\u8ba1<\/strong><\/p>\n<p style=\"text-align: left;\">\u8b66\u544a\uff1a\u8fd9\u90e8\u5206\u6240\u63cf\u8ff0\u7684\u7edf\u8ba1\u9879\u4ee5\u540e\u53ef\u80fd\u4f1a\u6709\u53d8\u66f4\u3002<br \/>\n\u5e26\u6709\"<span style=\"color: #0000ff;\">settings<\/span>\" \u7684\u00a0\"stats\"\u547d\u4ee4\u8fd4\u56dememcached\u7684\u8bbe\u7f6e\u7ec6\u8282\u3002\u8fd9\u57fa\u672c\u4e0a\u5c31\u662f\u7531\u8fdb\u7a0b\u547d\u4ee4\u884c\u7684\u9009\u9879\u6240\u7ec4\u6210\u7684\u3002\u6ce8\u610f\u8fd9\u91cc\u4e0d\u4fdd\u8bc1\u7edf\u8ba1\u9879\u7684\u6b21\u5e8f\uff0c\u5217\u8868\u4e5f\u4e0d\u4e00\u5b9a\u662f\u8be6\u5c3d\u7684\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u5b83\u7684\u8fd4\u56de\u7ed3\u679c\u4e0e\u5176\u5b83\u7684stats\u547d\u4ee4\u662f\u4e00\u6837\u7684\u3002<\/p>\n<table class=\"MsoTableGrid alignleft\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u540d\u79f0<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u7c7b\u578b<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u542b\u4e49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">maxbytes<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">size_t<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u7f13\u5b58\u4e2d\u7684\u6700\u5927\u5b57\u8282\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">maxconns<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6700\u5927\u7684\u5e76\u53d1\u5ba2\u6237\u7aef\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">tcpport<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">TCP<\/span>\u76d1\u542c\u7aef\u53e3<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">udpport<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">UDP<\/span>\u76d1\u542c\u7aef\u53e3<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">inter<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">string<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u76d1\u542c\u5730\u5740<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">verbosity<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">0=<\/span>\u65e0<span lang=\"EN-US\">, 1=<\/span>\u90e8\u5206<span lang=\"EN-US\">, 2=<\/span>\u5f88\u591a<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">oldest<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32u<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u6700\u8001\u5bf9\u8c61\u7684\u65f6\u957f<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">evictions<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">on\/off<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5f53\u4e3a<span lang=\"EN-US\">off<\/span>\u65f6\uff0c<span lang=\"EN-US\">LRU<\/span>\u6e05\u9664\u7b56\u7565\u7981\u7528<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">domain_socket<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">string<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">Unix socket<\/span>\u7684\u6587\u4ef6\u8def\u5f84<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">umask<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32 (oct)<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">Unix socket <\/span>\u7684\u5c4f\u853d\u5b57<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">growth_factor<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">float<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px; color: #0000ff;\"><span lang=\"EN-US\">Chunk<\/span>\u5927\u5c0f\u7684\u589e\u957f\u56e0\u5b50<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">chunk_size<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u4e3a<span lang=\"EN-US\"> key+ value + flag<\/span>\u5206\u914d\u7684\u6700\u5c0f\u7a7a\u95f4<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">num_threads<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u7ebf\u7a0b\u6570\uff08\u5305\u62ec\u5206\u6d3e\u7ebf\u7a0b\uff09<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">stat_key_prefix<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">char<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u7edf\u8ba1\u524d\u7f00\u5206\u9694\u7b26<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">detail_enabled<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">bool<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5982\u679c\u4e3a\u771f\uff0c\u542f\u7528\u7edf\u8ba1\u7ec6\u8282<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">reqs_per_event<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5728\u4e00\u4e2a\u4e8b\u4ef6\u5904\u7406\u91cc\u7684\u6700\u5927<span lang=\"EN-US\">IO<\/span>\u8bf7\u6c42\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cas_enabled<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">bool<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u5f53\u4e3a\u5047\u65f6\uff0c<span lang=\"EN-US\">CAS<\/span>\u4f1a\u88ab\u7981\u7528<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">tcp_backlog<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">32<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\"><span lang=\"EN-US\">TCP <\/span>\u76d1\u542c<span lang=\"EN-US\">backlog<\/span>\u503c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">auth_enabled_sasl<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">yes\/no<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"189\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u662f\u5426\u4f7f\u7528<span lang=\"EN-US\">SASL<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\"><strong><br \/>\n\u6570\u636e\u9879\u7edf\u8ba1<br \/>\n<\/strong>\u8b66\u544a\uff1a\u00a0\u8fd9\u90e8\u5206\u6240\u63cf\u8ff0\u7684\u7edf\u8ba1\u9879\u4ee5\u540e\u53ef\u80fd\u4f1a\u6709\u53d8\u66f4\u3002<br \/>\n\u5e26\u6709\u201c<span style=\"color: #0000ff;\">items<\/span>\u201d\u9009\u9879\u7684\"stats\"\u547d\u4ee4\u8fd4\u56de\u6bcf\u4e2aslab class\u7684item\u5b58\u50a8\u4fe1\u606f\u3002\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f:<br \/>\n<strong> STAT items:&lt;slabclass&gt;:&lt;stat&gt; &lt;value&gt;\/r\/n<br \/>\n<\/strong> \u670d\u52a1\u5668\u4f7f\u7528\u4ee5\u4e0b\u884c\u7ec8\u6b62\u8fd9\u4e2a\u5217\u8868\uff1a<br \/>\n<strong>END\/r\/n<br \/>\n<\/strong> &lt;slabclass&gt;\u548c \"stats slabs\"\u547d\u4ee4\u4f7f\u7528\u7684\u7c7bid\u662f\u4e00\u81f4\u7684\u3002\"stats slabs\"\u63cf\u8ff0\u5185\u5b58\u7684\u5927\u5c0f\u548c\u4f7f\u7528\u7387\uff0c \"stats items\"\u63cf\u8ff0\u66f4\u4e0a\u4e00\u5c42\u7684\u4fe1\u606f\u3002<\/p>\n<p style=\"text-align: left;\">\u4ee5\u4e0b\u7684\u9879\u7684\u503c\u88ab\u5b9a\u4e49\u4e3a<\/p>\n<table class=\"MsoTableGrid alignleft\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u540d\u79f0<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u542b\u4e49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">number<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u5f53\u524d\u5b58\u50a8\u5728\u8fd9\u4e2aclass\u4e2d\u7684item\u6570.\u8fc7\u671f\u7684item\u4e0d\u4f1a\u81ea\u52a8\u6392\u9664<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">age<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u5728LRU\u4e2d\u6700\u8001\u7684item<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">evicted<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u4e0d\u5f97\u4e0d\u4eceLRU\u4e2d\u79fb\u9664\u672a\u8fc7\u671fitem\u7684\u6b21\u6570\u00a0<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">evicted_nonzero<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u8fc7\u671f\u65f6\u95f4\u8bbe\u7f6e\u4e0d\u4e3a0\uff0c\u4f46\u4e0d\u5f97\u4e0d\u4eceLRU\u4e2d\u79f0\u9664\u8be5\u672a\u8fc7\u671f\u7684item\u7684\u6b21\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">evicted_time<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u81ea\u6700\u540e\u4e00\u6b21\u6e05\u9664\u8fc7\u671fitem\u8d77\u6240\u7ecf\u5386\u7684\u79d2\u6570\u3002\u7528\u8fd9\u4e2a\u6765\u5224\u65ad\u6570\u636e\u88ab\u79fb\u9664\u7684\u6700\u8fd1\u65f6\u95f4<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">outofmemory<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">slab class\u4e3a\u65b0item\u5206\u914d\u7a7a\u95f4\u5931\u8d25\u7684\u6b21\u6570\u3002\u8fd9\u610f\u5473\u7740\u4f60\u8fd0\u884c\u65f6\u5e26\u4e0a\u4e86-M\u6216\u8005\u79fb\u9664\u64cd\u4f5c\u5931\u8d25<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">tailrepairs<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u81ea\u89e3\u51b3slab \u5f15\u7528\u6cc4\u6f0f\u95ee\u9898\u7684\u6b21\u6570\u3002\u5982\u679c\u8fd9\u4e2a\u8ba1\u6570\u5668\u589e\u957f\u5f88\u591a\uff0c\u8bf7\u5c06\u4f60\u7684\u60c5\u51b5\u544a\u8bc9\u5f00\u53d1\u8005<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">reclaimed<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u7528\u4e00\u4e2a\u8fc7\u671f\u7684\u6570\u636e\u6761\u76ee\u5b58\u50a8\u65b0\u4e00\u4e2a\u6570\u636e\u6761\u76ee\u7684\u6b21\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\">\u6ce8\u610f\u4ec5\u4ec5\u4f1a\u663e\u793a\u5b58\u5728\u7684slab\u7684\u4fe1\u606f\uff0c\u56e0\u6b64\u5bf9\u4e8e\u7a7a\u7684\u7f13\u5b58\u4f1a\u8fd4\u56de\u7a7a\u96c6\u3002<\/p>\n<p style=\"text-align: left;\"><strong>Item\u5927\u5c0f\u7edf\u8ba1<br \/>\n<\/strong>\u8b66\u544a\uff1a\u00a0\u8fd9\u90e8\u5206\u6240\u63cf\u8ff0\u7684\u7edf\u8ba1\u9879\u4ee5\u540e\u53ef\u80fd\u4f1a\u6709\u53d8\u66f4\u3002<br \/>\n\u5e26\u6709\"<span style=\"color: #0000ff;\">sizes<\/span>\"\u9009\u9879\u7684\"stats\"\u547d\u4ee4\u8fd4\u56de\u7f13\u5b58\u4e2d<span style=\"color: #0000ff;\">\u5168\u90e8\u6570\u636e<\/span>\u7684\u4e00\u822c\u5927\u5c0f\u548c\u6570\u76ee\u3002<br \/>\n\u8b66\u544a\uff1a<span style=\"color: #0000ff;\">\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5bf9\u7f13\u5b58\u4e0a\u9501<\/span>\uff01\u5b83\u4f1a\u904d\u5386\u6bcf\u4e00\u4e2a\u6570\u636e\u9879\u5e76\u68c0\u67e5\u5176\u5927\u5c0f\u3002<br \/>\n\u5c3d\u7ba1\u8fd9\u4e2a\u64cd\u4f5c\u5f88\u5feb\uff0c\u4f46\u5982\u679c\u4f60\u6709\u5f88\u591a\u6570\u636e\u9879\uff0c\u4f60\u4f1a\u963b\u6b62\u5176\u5b83\u7684\u8bf7\u6c42\u51e0\u79d2\u3002<br \/>\n\u6570\u636e\u7684\u8fd4\u56de\u683c\u5f0f\u5982\u4e0b\u6240\u793a\uff1a<br \/>\n<strong>&lt;size&gt; &lt;count&gt;\/r\/n<br \/>\n<\/strong>\u670d\u52a1\u5668\u4ee5\u4e0b\u9762\u7684\u884c\u6765\u7ec8\u6b62\u5217\u8868\uff1a<br \/>\n<strong>END\/r\/n<br \/>\n<\/strong>\"size\"\u662f\u6570\u636e\u9879\u7684\u5927\u7ea6\u5927\u5c0f\uff0c\u572832\u5b57\u8282\u5185<br \/>\n\"count\"\u662f\u5728\u8be532\u5b57\u8282\u8303\u56f4\u7684\u6570\u636e\u9879\u7684\u6570\u76ee\u3002<\/p>\n<p><span style=\"color: #0000ff;\">\u8fd9\u4f7f\u6211\u4eec\u4e86\u89e3\u5230\u5bf9\u4e8e\u6240\u6709\u7684item\uff0c\u662f\u5426\u90fd\u6709\u4e00\u4e2a\u76f8\u5e9432\u5b57\u8282\u957f\u5ea6\u5185\u7684slab class\u3002\u4f60\u53ef\u4ee5\u4ee5\u6b64\u6765\u51b3\u5b9a\u5982\u4f55\u8c03\u6574slab\u589e\u957f\u56e0\u5b50\u6765\u51cf\u5c11\u5185\u5b58\u5f00\u9500<\/span>\u3002\u4f8b\u5982\uff1a\u5982\u679c\u5927\u90e8\u5206\u7684item\u90fd\u5c0f\u4e8e200\u5b57\u8282\uff0c\u5728\u5c0f\u5bb9\u91cf\u7684\u8303\u56f4\u4e2d\u4ea7\u751f\u66f4\u591a\u7684 class\u53ef\u4ee5\u4f7f\u5f97item\u5728slab\u4e2d\u7684\u5206\u914d\u66f4\u7d27\u51d1\u3002<\/p>\n<p style=\"text-align: left;\"><strong>Slab \u7edf\u8ba1<br \/>\n<\/strong>\u8b66\u544a\uff1a\u00a0\u8fd9\u90e8\u5206\u6240\u63cf\u8ff0\u7684\u7edf\u8ba1\u9879\u4ee5\u540e\u53ef\u80fd\u4f1a\u6709\u53d8\u66f4\u3002<br \/>\n\u5e26\u6709\"<span style=\"color: #0000ff;\">slabs<\/span>\"\u9009\u9879\u7684\"stats\"\u547d\u4ee4\u8fd4\u56de\u5728\u8fd0\u884c\u671fmemcache\u5efa\u7acb\u7684\u6bcf\u4e00\u4e2aslab\u7684\u4fe1\u606f\u3002\u8fd9\u5305\u62ec\u6bcf\u4e2aslab\u7684\u4fe1\u606f\u548c\u4e00\u4e9b\u603b\u8ba1\u4fe1\u606f\u3002\u8fd4\u56de\u6570\u636e\u7684\u683c\u5f0f\u4e3a\uff1a<\/p>\n<p style=\"text-align: left;\"><strong>STAT &lt;slabclass&gt;:&lt;stat&gt; &lt;value&gt;\/r\/n<br \/>\n<\/strong><strong>STAT &lt;stat&gt; &lt;value&gt;\/r\/n<br \/>\n<\/strong>\u670d\u52a1\u5668\u4ee5\u4e0b\u9762\u7684\u884c\u7ec8\u6b62\u5217\u8868\uff1a<br \/>\n<strong>END\/r\/n<\/strong><\/p>\n<table class=\"MsoTableGrid alignleft\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u540d\u79f0<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span style=\"font-size: 13px;\">\u542b\u4e49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">chunk_size<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px; color: #0000ff;\">\u6bcf\u4e00\u4e2achunk\u5360\u7528\u7684\u7a7a\u95f4\u3002\u4e00\u4e2aitem\u4f1a\u4f7f\u7528\u4e00\u4e2a\u5408\u9002\u5927\u5c0f\u7684chunk\u6765\u5b58\u50a8<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">chunk_per_page<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u00a0\u4e00\u4e2a\u9875\u4e2d\u6709\u591a\u5c11\u4e2achunk.\u4e00\u4e2a\u9875\u7684\u5927\u5c0f\u9ed8\u8ba4\u662f\u5c0f\u4e8e\u7b49\u4e8e1M\u3002Slab\u5728\u9875\u4e2d\u5206\u914d\uff0c\u7136\u540e\u5206\u5272\u6210chunk<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">total_pages<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u4e3a\u8be5slab class\u5206\u914d\u7684\u9875\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\"><span style=\"font-size: 13px;\">total_chunks<\/span><\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px; color: #0000ff;\">\u4e3a\u8be5slab class\u5206\u914d\u7684chunk\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">get_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u5728\u8be5class\u4e2d\u6570\u636e\u63d0\u53d6\u8bf7\u6c42(\u547d\u4e2d)\u7684\u603b\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">cmd_set<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u5728\u8be5class \u4e2d\u6570\u636e\u5b58\u50a8\u8bf7\u6c42\u7684\u603b\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">delete_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u5728\u8be5class \u4e2d\u6210\u529f\u5220\u9664\u6570\u636e\u7684\u603b\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">incr_hits<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"284\">\n<p class=\"MsoNormal\"><span lang=\"EN-US\" style=\"font-size: 13px;\">\u5728\u8be5class\u4e2d\u9012\u589e\u64cd\u4f5c\u7684\u603b\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">decr_hits<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u5728\u8be5class\u4e2d\u9012\u51cf\u64cd\u4f5c\u7684\u603b\u6570<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">cas_hits<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u5728\u8be5class\u4e2dCAS\u547d\u4ee4\u66f4\u65b0\u7684\u603b\u6570<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">cas_badval<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u5728\u8be5class\u4e2d\u56e0\u4e0d\u5339\u914d\u7684CAS id\u800c\u5931\u8d25\u800c\u5bfc\u81f4\u66f4\u65b0\u5931\u8d25\u7684CAS\u547d\u4ee4\u7684\u603b\u6570<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">used_chunks<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u6709\u591a\u5c11\u4e2achunk\u7528\u4e8e\u5206\u914ditem<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">free_chunks<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u8fd8\u6ca1\u6709\u7528\u4e8eitem\u5206\u914d\uff0c\u6216\u56e0\u5220\u9664\u53d8\u7a7a\u95f2\u7684chunk\u6570\u76ee<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">free_chunks_end<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u5728\u6700\u8fd1\u5206\u914d\u7684Page\u5c3e\u90e8\u7a7a\u95f2chunk\u7684\u6570\u76ee<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">mem_requested<\/span><\/td>\n<td><span style=\"font-size: 13px; color: #0000ff;\">\u5728\u8be5slab \u4e2d\u7533\u8bf7\u5206\u914d\u7684\u5185\u5b58\u5b57\u8282\u6570<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">active_slabs<\/span><\/td>\n<td><span style=\"font-size: 13px;\">slab class\u5206\u914d\u7684\u603b\u6570<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 13px;\">total_malloced<\/span><\/td>\n<td><span style=\"font-size: 13px;\">\u5206\u914d\u7684slab page\u5185\u5b58\u91cf<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\">Item\u5b58\u50a8\u4e8e\u4e0e\u5927\u4e8e\u7b49\u4e8e\u5176\u5927\u5c0f\u7684slab\u4e2d\u3002mem_request\u663e\u793a\u5728\u4e00\u4e2aslab\u4e2d\u6240\u6709\u5185\u5b58\u8bf7\u6c42\u7684\u603b\u5927\u5c0f<span style=\"color: #0000ff;\">\uff08total_chunks * chunk_size\uff09- mem_requestd \u663e\u793a\u8be5slab\u6d6a\u8d39\u7684\u5185\u5b58\u6570<\/span>\u3002\u5982\u679c\u4f60\u770b\u5230\u6709\u5927\u91cf\u7684\u6d6a\u8d39\uff0c\u8003\u8651\u8c03slab \u589e\u957f\u56e0\u5b50\u3002<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #008000;\">\u5176\u5b83\u547d\u4ee4<br \/>\n<\/span><\/strong>---------------------------------------------------------<br \/>\n\"flush_all\" \u547d\u4ee4\u5e26\u6709\u4e00\u4e2a\u53ef\u9009\u7684\u6570\u76ee\u53c2\u6570\u3002\u5b83\u603b\u662f\u6210\u529f\uff0c\u670d\u52a1\u5668\u8fd4\u56de\"OK\/r\/n\"\u4f5c\u4e3a\u54cd\u5e94\uff08\u9664\u975e\u5728\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u4e2d\u6307\u5b9a\u4e86\"noreply\"\uff09\u3002\u5b83\u7684\u4f5c\u7528\u662f<span style=\"color: #0000ff;\">\u4f7f\u5f97\u6240\u6709\u73b0\u5b58\u7684item\u7acb\u5373\u65e0\u6548\uff08\u9ed8\u8ba4\uff09\u6216\u8005\u5728\u4e00\u4e2a\u6307\u5b9a\u7684\u65f6\u95f4\u540e\u65e0\u6548<\/span>\u3002\u5728\u5931\u6548\u64cd\u4f5c\u540e\uff0c\u4e0d\u4f1a\u6709item\u4f5c\u4e3a\u54cd\u5e94\u8fd4\u56de\u7ed9\u6570\u636e\u63d0\u53d6\u547d\u4ee4\uff08\u9664\u975e\u5b83\u5728flush_all\u64cd\u4f5c\u540e\u53c8\u5728\u76f8\u540c\u7684key\u4e2d\u5b58\u50a8\u4e86\u4e00\u6b21\uff09\u3002flush_all<span style=\"color: #0000ff;\">\u5b9e\u9645\u4e0a\u5e76\u6ca1\u6709\u91ca\u653eitem\u5360\u7528\u7684\u6240\u6709\u7684\u5185\u5b58<\/span>\uff0c\u5b83\u4eec\u4f1a\u9010\u6e10\u88ab\u7528\u4e8e\u5b58\u50a8\u65b0\u7684item\u3002flush_all \u6700\u7cbe\u786e\u7684\u5b9a\u4e49\u5982\u4e0b\uff1a\u5b83\u4f7f\u5f97\u6240\u6709\u6700\u540e\u66f4\u65b0\u65f6\u95f4\u5c0f\u4e8eflush_all\u6307\u5b9a\u7684\u65f6\u95f4\u7684item\u5728\u63d0\u53d6\u64cd\u4f5c\u4e2d\u88ab\u5ffd\u7565\u3002<\/p>\n<p>\u5e26\u5ef6\u8fdf\u7684flush_all\u7684\u76ee\u7684\u5728\u4e8e\uff0c\u5f53\u4f60\u8bbe\u7f6e\u4e86\u4e00\u4e2amemcache\u670d\u52a1\u6c60\uff0c\u800c\u4e14\u8981\u6e05\u9664\u6240\u6709\u5185\u5bb9\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4e0d\u8981\u540c\u65f6\u91cd\u7f6e\u6240\u6709\u7684memcache\u670d\u52a1<br \/>\n\uff08\u4f8b\u5982\u8fd9\u4f1a\u4f7f\u6240\u6709\u5ba2\u6237\u7aef\u539f\u672c\u4ecememcache\u4e2d\u53d6\u5f97\u7684\u6570\u636e\uff0c\u73b0\u5728\u8981\u7531\u6570\u636e\u5e93\u91cd\u65b0\u751f\u6210\u800c\u5bfc\u81f4\u6570\u636e\u5e93\u8d1f\u62c5\u7684\u7a81\u7136\u52a0\u91cd\uff09\u3002<br \/>\n\u8fd9\u4e2a\u5ef6\u8fdf\u9009\u9879\u5141\u8bb8\u4f60\u4ee510\u79d2\u7684\u95f4\u9694\u6765\u91cd\u7f6e\u5b83\u4eec\uff08\u4f8b\u5982\uff0c\u7b2c\u4e00\u4e2a10\u79d2\u540e\uff0c\u7b2c\u4e8c\u4e2a20\u79d2\u540e\uff0c\u7b2c\u4e09\u4e2a......\uff09<br \/>\n\"version\"\u547d\u4ee4\u6ca1\u6709\u53c2\u6570\uff1a<br \/>\n<strong>version\/r\/n<br \/>\n<\/strong>\u5728\u54cd\u5e94\u4e2d\uff0c\u670d\u52a1\u5668\u8fd4\u56de\uff1a<br \/>\n\"<strong>VERSION &lt;version&gt;\/r\/n<\/strong>\", \u5176\u4e2d&lt;version&gt;\u8be5\u670d\u52a1\u5668\u7684\u7248\u672c\u5b57\u7b26\u4e32\u3002<br \/>\n\"<strong>verbosity<\/strong>\"\u662f\u4e00\u4e2a\u5e26\u4e00\u4e2a\u6570\u76ee\u53c2\u6570\u7684\u547d\u4ee4\u3002\u5b83\u603b\u662f\u6210\u529f\uff0c\u670d\u52a1\u5668\u8fd4\u56de\"<strong>OK\/r\/n<\/strong>\"\u4f5c\u4e3a\u54cd\u5e94\uff08\u9664\u975e\u5728\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u6307\u5b9a\u4e86noreply\uff09.\u5b83\u7684\u4f5c\u7528\u662f\u8bbe\u7f6e\u65e5\u5fd7\u8f93\u51fa\u7684\u663e\u793a\u7ea7\u522b\u3002<br \/>\n\"quit\"\u547d\u4ee4\u6ca1\u6709\u4efb\u4f55\u53c2\u6570\uff1a<br \/>\n<strong>quit\/r\/n<\/strong><\/p>\n<p>\u5f53\u6536\u5230\u8be5\u547d\u4ee4\u65f6\uff0c \u670d\u52a1\u5668\u7aef\u5173\u95ed\u8fde\u63a5\u3002\u4f46\u5ba2\u6237\u7aef\u4e5f\u53ef\u4ee5\u5728\u5b83\u4e0d\u9700\u8981\u8be5\u8fde\u63a5\u65f6\u5c06\u5176\u7b80\u5355\u5730\u5173\u95ed\uff0c\u4e0d\u7528\u53d1\u9001\u4efb\u4f55\u547d\u4ee4\u3002<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #008000;\">UDP\u534f\u8bae<br \/>\n<\/span><\/strong>---------------------------------------------------------<br \/>\n\u5bf9\u4e8e\u5ba2\u6237\u7aef\u7684\u6570\u76ee\u975e\u5e38\u591a\u7684\u60c5\u51b5\u4e0b\uff0cTCP\u8fde\u63a5\u6570\u9650\u5236\u4e86\u6269\u5c55\u6027\u3002\u4e5f\u6709\u4e00\u4e2a\u57fa\u4e8eUDP\u7684\u63a5\u53e3\u3002UDP\u63a5\u53e3\u4e0d\u63d0\u4f9b\u53ef\u9760\u4f20\u8f93\uff0c \u6240\u4ee5\u53ea\u5e94\u7528\u4e8e\u4e0d\u9700\u8981\u4fdd\u8bc1\u6210\u529f\u7684\u64cd\u4f5c\u4e2d\uff1b\u5178\u578b\u7684\u60c5\u51b5\u662f\u5728\"get\"\u8bf7\u6c42\u65f6\uff0c\u4e00\u4e2a\u4e22\u5931\u6216\u4e0d\u5b8c\u6574\u7684\u54cd\u5e94\u4f1a\u7b80\u5355\u5730\u88ab\u8ba4\u4e3a\u662f\u7f13\u5b58\u4e0d\u547d\u4e2d\u3002<\/p>\n<p>\u6bcf\u4e00\u4e2aUDP\u6570\u636e\u62a5\u5305\u542b\u4e00\u4e2a\u7b80\u5355\u7684\u5e27\u5934\uff0c\u540e\u8ddf\u4e0e\u4e0a\u8ff0TCP\u534f\u8bae\u4e00\u6837\u683c\u5f0f\u7684\u6570\u636e\u3002\u5728\u5f53\u524d\u7684\u5b9e\u73b0\u4e2d\uff0c\u8bf7\u6c42\u5fc5\u987b\u5728\u4e00\u4e2aUDP\u6570\u636e\u62a5\u4e2d\uff0c\u4f46\u54cd\u5e94\u53ef\u4ee5\u8de8\u591a\u4e2a\u6570\u636e\u62a5<br \/>\n\uff08\u4e00\u822c\u4ec5\u7528\u4e8e\u5728\u591a\u4e2akey\u7684\"get\"\u548c\"set\"\u8bf7\u6c42\u4e2d\u3002\u8003\u8651\u5230\u53ef\u9760\u6027\uff0c\u8fd9\u4e24\u79cd\u8bf7\u6c42\u5176\u5b9e\u8fd8\u662f\u7528TCP\u4f20\u8f93\u6bd4\u8f83\u5408\u9002\uff09\u3002<\/p>\n<p style=\"text-align: left;\">\u5e27\u5934\u662f8\u4e2a\u5b57\u8282\u7684\u957f\u5ea6\uff0c\u5982\u4e0b\u6240\u793a\uff08\u6240\u6709\u7684\u503c\u90fd\u662f16\u4f4d\u6574\u6570\uff0c\u7f51\u7edc\u5b57\u8282\u5e8f\uff0c\u9ad8\u4f4d\u5728\u524d\uff09<\/p>\n<p style=\"text-align: left;\">0-1\u00a0 \u8bf7\u6c42ID<br \/>\n2-3\u00a0 \u5e8f\u5217\u53f7<br \/>\n4-5\u00a0 \u8be5\u6d88\u606f\u5305\u542b\u7684\u6570\u636e\u62a5\u6570\u76ee<br \/>\n6-7\u00a0 \u4fdd\u7559\u5b57\u6bb5\uff0c\u5fc5\u987b\u4e3a0<\/p>\n<p>\u8bf7\u6c42ID\u7531\u5ba2\u6237\u7aef\u63d0\u4f9b\uff0c\u5178\u578b\u662f\u4f7f\u7528\u4e00\u4e2a\u57fa\u4e8e\u67d0\u4e2a\u968f\u673a\u6570\u7684\u81ea\u589e\u5e8f\u5217\uff0c\u4f46\u5ba2\u6237\u7aef\u53ef\u4ee5\u81ea\u7531\u51b3\u5b9a\u8bf7\u6c42ID\u3002\u670d\u52a1\u5668\u7684\u54cd\u5e94\u4e2d\u4f1a\u5305\u542b\u4e0e\u8bf7\u6c42\u76f8\u540c\u7684ID\u3002\u5ba2\u6237\u7aef\u4f7f\u7528\u8bf7\u6c42<br \/>\nID\u6765\u533a\u5206\u4e0d\u540c\u6765\u81ea\u540c\u4e00\u4e2a\u670d\u52a1\u5668\u7684\u5bf9\u4e0d\u540c\u8bf7\u6c42\u7684\u54cd\u5e94\u3002\u90a3\u4e9b\u5e26\u6709\u4e0d\u80fd\u8bc6\u522b\u7684\u8bf7\u6c42ID\u7684\u54cd\u5e94\u53ef\u80fd\u662f\u5bf9\u4e4b\u524d\u8bf7\u6c42\u7684\u5ef6\u8fdf\u54cd\u5e94\uff0c\u5e94\u8be5\u4e22\u5f03\u3002<\/p>\n<p style=\"text-align: left;\">\u5e8f\u5217\u53f7\u662f\u8303\u56f4\u662f\u4ece0\u5230n-1, \u8fd9\u91cc\u7684n\u662f\u8be5\u6d88\u606f\u7684\u6570\u636e\u62a5\u603b\u6570\u3002\u5ba2\u6237\u7aef\u5e94\u8be5\u5c06\u6570\u636e\u62a5\u7684\u8d1f\u8f7d\u90e8\u5206\u4ee5\u5e8f\u5217\u53f7\u987a\u5e8f\u8fdb\u884c\u8fde\u63a5\u3002\u5408\u5e76\u5b57\u8282\u6d41\u7684\u7ed3\u679c\u4e0eTCP\u534f\u8bae\uff08\u5305\u542b\u7ed3\u675f\u7b26\/r\/n\uff09\u7684\u683c\u5f0f\u4e00\u81f4\u3002<\/p>\n<p>\u6458\u81ea\uff1a <a href=\"http:\/\/www.cnblogs.com\/warriorlee\/archive\/2011\/09\/18\/2180661.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.cnblogs.com\/warriorlee\/archive\/2011\/09\/18\/2180661.html<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<h1 class=\"postTitle\"><a id=\"cb_post_title_url\" class=\"postTitle2\" href=\"http:\/\/www.cnblogs.com\/warriorlee\/archive\/2011\/09\/18\/2180661.html\">Memcache \u534f\u8bae (\u8bd1)<\/a><\/h1>\n<div id=\"cnblogs_post_body\">\n<p><span style=\"color:#008000;\"><strong>\u534f\u8bae<\/strong><\/span><\/p>\n<p>---------------------------------------------------------<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Memcache\u5ba2\u6237\u7aef\u901a\u8fc7TCP\u8fde\u63a5\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\uff08UDP\u63a5\u53e3\u4e5f\u662f\u53ef\u7528\u7684\uff0c\u5728\u4e0b\u6587\u7684\"UDP\u534f\u8bae\"\u90e8\u5206\u6709\u8be6\u7ec6\u63cf\u8ff0\uff09\u3002Memcache\u670d\u52a1\u5668\u5728\u4e00\u4e2a(\u53ef\u914d\u7f6e\u7684)\u7aef\u53e3\u4e0a\u76d1\u542c\uff1b\u5ba2\u6237\u7aef\u8fde\u63a5\u8be5\u7aef\u53e3\uff0c\u53d1\u9001\u547d\u4ee4\u5230\u670d\u52a1\u5668\uff0c\u8bfb\u53d6\u54cd\u5e94\uff0c\u6700\u540e\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>\n\u7ec8\u6b62\u4f1a\u8bdd\u662f\u6ca1\u6709\u5fc5\u8981\u53d1\u9001\u547d\u4ee4\u7684\uff1a\u5982\u679c\u4e0d\u9700\u8981\u8be5\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u4efb\u4f55\u65f6\u5019\u90fd\u53ef\u4ee5\u5c06\u5176\u5173\u95ed\u3002\u4f46\u5373\u4fbf\u662f\u8fd9\u6837\uff0c\u5ba2\u6237\u7aef\u6700\u597d\u8fd8\u662f\u7f13\u5b58\u8fde\u63a5\uff0c\u800c\u4e0d\u662f\u5728\u8981\u5b58\u53d6\u6570\u636e\u65f6\u518d\u6253\u5f00\u8fde<br \/>\n\u63a5\u3002\u8fd9\u662f\u7531\u4e8ememcache\u88ab\u7279\u610f\u8bbe\u8ba1\u6210\u53ef\u4ee5\u5904\u7406\u5927\u91cf(\u6570\u767e\u4e2a\uff0c\u9700\u8981\u7684\u8bdd\u53ef\u4ee5\u4e0a\u5343\u4e2a)\u6253\u5f00\u7684\u8fde\u63a5\u3002\u7f13\u5b58\u8fd9\u4e9b\u8fde\u63a5\u4f1a\u51cf\u5c11\u5efa\u7acbTCP\u8fde\u63a5\u6240\u5e26\u6765\u7684\u5f00\u9500(\u76f8\u5bf9<br \/>\n\u4e8e\u6b64\uff0c\u5728\u670d\u52a1\u5668\u7aef\u5efa\u7acb\u4e00\u4e2a\u65b0\u8fde\u63a5\u7684\u51c6\u5907\u5de5\u4f5c\u6240\u5e26\u6765\u7684\u5f00\u9500\uff0c\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1)\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5728Memcache\u534f\u8bae\u4e2d\u53d1\u9001\u7684\u6570\u636e\u5206\u4e24\u79cd\uff1a\u6587\u672c\u884c\u548c\u975e\u7ed3\u6784\u6570\u636e(unstructured<br \/>\ndata)\u3002\u7531\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u547d\u4ee4\u548c\u670d\u52a1\u5668\u7aef\u7684\u54cd\u5e94\u4f7f\u7528\u7684\u662f\u6587\u672c\u884c\u3002\u975e\u7ed3\u6784\u6570\u636e\u7528\u4e8e\u5ba2\u6237\u7aef\u5b58\u50a8\u6570\u636e\u7684\u65f6\u5019\u3002\u670d\u52a1\u5668\u4f1a\u5c06\u63a5\u6536\u5230\u7684\u975e\u7ed3\u6784\u6570\u636e...<\/p>\n<\/div>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/573\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[273],"tags":[181],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-article","tag-memcache"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=573"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/573\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}