{"id":159221,"date":"2020-09-23T00:07:46","date_gmt":"2020-09-22T16:07:46","guid":{"rendered":"http:\/\/4563.org\/?p=159221"},"modified":"2020-09-23T00:07:46","modified_gmt":"2020-09-22T16:07:46","slug":"redis-%e5%a6%82%e4%bd%95%e5%81%9a%e7%b1%bb%e4%bc%bc%e5%85%b3%e7%b3%bb%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e6%9d%a1%e4%bb%b6%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=159221","title":{"rendered":"redis \u5982\u4f55\u505a\u7c7b\u4f3c\u5173\u7cfb\u6570\u636e\u5e93\u7684\u6761\u4ef6\u67e5\u8be2"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  redis \u5982\u4f55\u505a\u7c7b\u4f3c\u5173\u7cfb\u6570\u636e\u5e93\u7684\u6761\u4ef6\u67e5\u8be2               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chengz <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898<\/p>\n<ol>\n<li>\u5982\u679c\u53ea\u7528 redis\uff0c\u5982\u4f55\u6ee1\u8db3\u4e00\u4e9b\u9700\u8981\u6761\u4ef6\u67e5\u8be2\u7684\u9700\u6c42\uff1f<\/li>\n<li>\u5982\u679c redis \u53ea\u7528\u4e8e\u7f13\u5b58\uff0c\u4f7f\u7528 MongoDB \u6301\u4e45\u5316\uff0c\u5927\u5bb6\u662f\u600e\u4e48\u540c\u6b65\u6570\u636e\u7684\uff1f<\/li>\n<\/ol><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3425455\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Redis \u672c\u8eab\u5c31\u662f\u975e\u5173\u7cfb\u578b\u7684\uff0c\u4e0d\u8bba\u662f\u5f53\u4f5c\u7f13\u5b58\u8fd8\u662f\u6570\u636e\u5e93\uff0c\u6240\u4ee5\u4e3a\u4ec0\u4e48\u8981\u7528\u5173\u7cfb\u578b\u67e5\u8be2\u8bed\u8a00\uff1f\u4e0d\u8fc7 Redis \u7684 RediSQL \u6a21\u5757\u53ef\u4ee5\u505a\u5230\u5185\u5d4c SQLite \u5e76\u5b9e\u73b0 SQL \u67e5\u8be2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425456\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hcx0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u81ea\u5df1\u89e3\u6790 SQL \u6620\u5c04\u5230 KV \u6570\u636e\uff0c\u7ed9\u67e5\u8be2\u6761\u4ef6\u5efa\u7acb\u6620\u5c04\u4f5c\u4e3a\u7d22\u5f15\uff0c\u4e0d\u80fd\u547d\u4e2d\u7d22\u5f15\u7684\u7528 SCAN \u67e5\u627e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425457\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qwerthhusn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             KEYS SCAN \u90fd\u53ef\u4ee5\u505a\u4e00\u4e9b Key \u67e5\u627e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425458\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : anthow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1.\u5177\u4f53\u4ec0\u4e48\u6761\u4ef6\u4e86\uff1f\u5982\u679c\u60f3\u7528\u5173\u7cfb\u6027\u6570\u636e\u5e93\u90a3\u79cd\u590d\u6742\u6761\u4ef6\uff0c\u90a3\u4e48\u5c31\u8981\u8003\u8651 redis \u662f\u5426\u771f\u6b63\u7684\u9002\u5408<br \/>2.\u7b49\u540c\u4e8e\u7f13\u5b58\u4e00\u81f4\u6027\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425459\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chengz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u4e1a\u52a1\u9700\u8981\u4f7f\u7528\u9ad8\u901f\u7f13\u5b58\uff0c\u4f46\u662f\u6709\u5c11\u91cf\u7b80\u5355\u7684\u6761\u4ef6\u67e5\u8be2\uff0c\u4ee5\u524d\u7528\u7684 mysql\uff0c\u5c31\u5fc5\u987b\u81ea\u5df1\u7ef4\u62a4\u7f13\u5b58\uff0c\u4e0d\u592a\u65b9\u4fbf\uff0c\u540c\u65f6\u6027\u80fd\u4e5f\u53ef\u80fd\u6709\u95ee\u9898\u3002\u770b\u4e86\u4e0b RediSQL\uff0c\u5982\u679c\u8981\u4f7f\u7528\uff0c\u5fc5\u987b\u81ea\u5efa redis \uff1f\u53ef\u4ee5\u5c1d\u8bd5\u4e0b<br \/>@hcx0 @qwerthhusn \u6761\u4ef6\u67e5\u8be2\u7684\u5b57\u6bb5\u662f\u53ef\u53d8\u7684\uff0c\u4e0d\u80fd\u5b58\u50a8\u5728 key \u4e2d <br \/>@anthow 1.\u5355\u8868\u7b80\u5355\u67e5\u8be2\uff0c2.\u6700\u7ec8\u4e00\u81f4\u6027\u5373\u53ef\uff0c\u6211\u7406\u89e3\u7684\u662f\u7f13\u5b58\u8bfb\u5199\uff0c\u5b9a\u65f6\u4ece redis \u540c\u6b65\u6570\u636e\u5230 mongodb \u843d\u5730\uff0c\u6240\u6709\u6761\u4ef6\u67e5\u8be2\u90fd\u901a\u8fc7 mongodb \u5b8c\u6210                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425460\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shakeyo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u5355\u7684\u6761\u4ef6\u67e5\u8be2\u7528 lua \u811a\u672c\u76f4\u63a5 scan \u5427<br \/>\u8fd9\u4e48\u5c11\u91cf\u7684\u9700\u6c42\u5355\u72ec\u5f15\u5165\u4e00\u4e2a mongodb \u4f9d\u8d56\u4e0d\u660e\u667a<br \/>\u4f60\u65e2\u7136\u4e5f\u6709 mysql\uff0c\u4e3a\u5565\u4e0d\u8003\u8651 redis \u540c\u6b65\u5230 mysql                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425461\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hcx0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chengz \u53ef\u4ee5\u505a\u5230\u4f46\u6ca1\u5fc5\u8981\uff0c\u4e0d\u5982\u8bf4\u8bf4\u662f\u4ec0\u4e48\u4e1a\u52a1\u573a\u666f\uff0cMySQL \u641e\u4e2a\u597d\u70b9\u5f97\u914d\u7f6e\u4e0a\u4e2a SSD \u4ee3\u7801\u5408\u7406\u5dee\u8ddd\u4e0d\u4f1a\u8d85\u8fc7 1ms\uff0c\u771f\u7684\u975e\u5f97\u7528\u8fd9\u4e48\u590d\u6742\u5f97\u65b9\u6848\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3425462\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chengz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shakeyo @hcx0 \u4e1a\u52a1\u573a\u666f\u6bd4\u8f83\u5782\u76f4\uff0c\u6211\u4e4b\u524d\u8868\u8ff0\u4e0d\u51c6\u786e\uff0c\u540e\u7eed\u6570\u636e\u91cf\u4f1a\u6bd4\u8f83\u5927\uff0cmysql \u5e73\u6ed1\u6269\u5bb9\u6bd4\u8f83\u9ebb\u70e6\uff0c\u6240\u4ee5\u8003\u8651\u5207\u6362 mongodb \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>redis \u5982\u4f55\u505a\u7c7b\u4f3c\u5173\u7cfb\u6570\u636e\u5e93\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159221"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159221"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159221\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159221"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}