{"id":2779,"date":"2013-08-07T13:29:19","date_gmt":"2013-08-07T13:29:19","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=2779"},"modified":"2013-08-07T13:29:19","modified_gmt":"2013-08-07T13:29:19","slug":"%e7%bc%93%e5%ad%98%ef%bc%9amongodb-redis-memcached","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2013\/08\/07\/%e7%bc%93%e5%ad%98%ef%bc%9amongodb-redis-memcached\/","title":{"rendered":"\u7f13\u5b58\uff1aMongoDB redis memcached"},"content":{"rendered":"<p><span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">mongodb\u548cmemcached\u4e0d\u662f\u4e00\u4e2a\u8303\u7574\u5185\u7684\u4e1c\u897f\u3002mongodb\u662f\u6587\u6863\u578b\u7684\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u5176\u4f18\u52bf\u5728\u4e8e\u67e5\u8be2\u529f\u80fd\u6bd4\u8f83\u5f3a\u5927\uff0c\u80fd\u5b58\u50a8\u6d77\u91cf\u6570\u636e\u3002mongodb\u548cmemcached\u4e0d\u5b58\u5728\u8c01\u66ff\u6362\u8c01\u7684\u95ee\u9898\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">\u548cmemcached\u66f4\u4e3a\u63a5\u8fd1\u7684\u662fredis\u3002\u5b83\u4eec\u90fd\u662f\u5185\u5b58\u578b\u6570\u636e\u5e93\uff0c\u6570\u636e\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\uff0c\u901a\u8fc7tcp\u76f4\u63a5\u5b58\u53d6\uff0c\u4f18\u52bf\u662f\u901f\u5ea6\u5feb\uff0c\u5e76\u53d1\u9ad8\uff0c\u7f3a\u70b9\u662f\u6570\u636e\u7c7b\u578b\u6709\u9650\uff0c\u67e5\u8be2\u529f\u80fd\u4e0d\u5f3a\uff0c\u4e00\u822c\u7528\u4f5c\u7f13\u5b58\u3002\u5728\u6211\u4eec\u56e2\u961f\u7684\u9879\u76ee\u4e2d\uff0c\u4e00\u5f00\u59cb\u7528\u7684\u662fmemcached\uff0c\u540e\u6765\u7528redis\u66ff\u4ee3\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">\u76f8\u6bd4memcached\uff1a<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">1\u3001redis\u5177\u6709\u6301\u4e45\u5316\u673a\u5236\uff0c\u53ef\u4ee5\u5b9a\u671f\u5c06\u5185\u5b58\u4e2d\u7684\u6570\u636e\u6301\u4e45\u5316\u5230\u786c\u76d8\u4e0a\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">2\u3001redis\u5177\u5907binlog\u529f\u80fd\uff0c\u53ef\u4ee5\u5c06\u6240\u6709\u64cd\u4f5c\u5199\u5165\u65e5\u5fd7\uff0c\u5f53redis\u51fa\u73b0\u6545\u969c\uff0c\u53ef\u4f9d\u7167binlog\u8fdb\u884c\u6570\u636e\u6062\u590d\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">3\u3001redis\u652f\u6301virtual memory\uff0c\u53ef\u4ee5\u9650\u5b9a\u5185\u5b58\u4f7f\u7528\u5927\u5c0f\uff0c\u5f53\u6570\u636e\u8d85\u8fc7\u9608\u503c\uff0c\u5219\u901a\u8fc7\u7c7b\u4f3cLRU\u7684\u7b97\u6cd5\u628a\u5185\u5b58\u4e2d\u7684\u6700\u4e0d\u5e38\u7528\u6570\u636e\u4fdd\u5b58\u5230\u786c\u76d8\u7684\u9875\u9762\u6587\u4ef6\u4e2d\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">4\u3001redis\u539f\u751f\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u66f4\u591a\uff0c\u4f7f\u7528\u7684\u60f3\u8c61\u7a7a\u95f4\u66f4\u5927\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">5\u3001\u524d\u9762\u6709\u4f4d\u670b\u53cb\u6240\u63d0\u53ca\u7684\u4e00\u81f4\u6027\u54c8\u5e0c\uff0c\u7528\u5728redis\u7684sharding\u4e2d\uff0c\u4e00\u822c\u662f\u5728\u8d1f\u8f7d\u975e\u5e38\u9ad8\u9700\u8981\u6c34\u5e73\u6269\u5c55\u65f6\u4f7f\u7528\u3002\u6211\u4eec\u8fd8\u6ca1\u6709\u7528\u5230\u8fd9\u65b9\u9762\u7684\u529f\u80fd\uff0c\u4e00\u822c\u7684\u9879\u76ee\uff0c\u5355\u673a\u8db3\u591f\u652f\u6491\u5e76\u53d1\u4e86\u3002redis 3.0\u5c06\u63a8\u51facluster\uff0c\u529f\u80fd\u66f4\u52a0\u5f3a\u5927\u3002<\/span><br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<br style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\" \/><br \/>\n<span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 22px; orphans: 2; widows: 2;\">6\u3001redis\u66f4\u591a\u4f18\u70b9\uff0c\u8bf7\u79fb\u6b65\u5b98\u65b9\u7f51\u7ad9\u67e5\u8be2\u3002<\/span><\/p>\n<p><a href=\"http:\/\/www.zhihu.com\/question\/19645807\"><span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 30px; orphans: 2; widows: 2;\">MongoDB \u6216\u8005 redis \u53ef\u4ee5\u66ff\u4ee3 memcached \u5417?<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>mongodb\u548cmemcached\u4e0d\u662f\u4e00\u4e2a\u8303\u7574\u5185\u7684\u4e1c\u897f\u3002mongodb\u662f\u6587\u6863\u578b\u7684\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u5176\u4f18\u52bf\u5728\u4e8e\u67e5\u8be2 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-2779","post","type-post","status-publish","format-standard","hentry","category-aspdotnet"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=2779"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2779\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=2779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=2779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=2779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}