{"id":92752,"date":"2020-03-19T08:28:21","date_gmt":"2020-03-19T00:28:21","guid":{"rendered":"http:\/\/4563.org\/?p=92752"},"modified":"2020-03-19T08:28:21","modified_gmt":"2020-03-19T00:28:21","slug":"%e9%9d%a2%e8%af%95%e8%a2%ab%e8%99%90-redis%ef%bc%8c%e6%89%80%e4%bb%a5%e6%9d%a5%e8%bf%99%e8%be%b9%e9%97%ae%e9%97%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=92752","title":{"rendered":"\u9762\u8bd5\u88ab\u8650 redis\uff0c\u6240\u4ee5\u6765\u8fd9\u8fb9\u95ee\u95ee"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u9762\u8bd5\u88ab\u8650 redis\uff0c\u6240\u4ee5\u6765\u8fd9\u8fb9\u95ee\u95ee               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxc1234 <\/span>  <span><i><\/i> 24<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>1.redis \u6839\u636e key \u83b7\u53d6 value<\/p>\n<p>\u53ef\u4ee5\u7528 get key\uff0c\u90a3\u4e48\u91cc\u9762\u7684\u5b9e\u73b0\u539f\u7406\u662f\u4ec0\u4e48\u5462\uff1f<\/p>\n<p>\uff08\u6211\u767e\u5ea6\u4e0d\u5230\u554a\uff09<\/p>\n<p>2.redis \u7684\u6570\u636e\u7ed3\u6784\u6709 string\uff0chash\uff0cset\uff0csort set \u7b49\uff0c\u90a3\u4e48\u5728\u5e73\u65f6\u7684\u4e1a\u52a1\u5904\u7406\u4e2d\u6709\u6ca1\u6709\u9047\u5230\u8fc7\u7528\u5176\u4e2d\u4e00\u79cd<\/p>\n<p>\u6570\u636e\u7c7b\u578b\u4e0d\u5408\u9002\uff0c\u7136\u540e\u7528\u53e6\u4e00\u79cd\u7684\u60c5\u51b5\u5462\uff0c\u662f\u4ec0\u4e48\u573a\u666f\u5462\uff1f\u4e3a\u4ec0\u4e48\u8981\u8fd9\u4e48\u6362\u5462\uff1f<\/p>\n<p>\u6c42\u5927\u4f6c\u4eec\u544a\u77e5\u4e0b\uff0c\u4e0d\u80dc\u611f\u6fc0\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>26<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"982340\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : janxin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u641c\u7d22\u5173\u952e\u8bcd\u201credis \u6e90\u7801 get\u201d<br \/>2. \u641c\u7d22\u5173\u952e\u8bcd\u201credis xxx \u4f7f\u7528\u573a\u666f\u201d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982341\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lhx2008 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             get key \u5c31\u662f\u4e00\u4e2a hashmap\uff0c\u600e\u4e48\u7528\u5c31\u770b\u4f60\u6709\u6ca1\u7528\u8fc7\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982342\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : la2la <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u7740\u6025\u9762\u8bd5\u7684\u8bdd\uff0c\u76f4\u63a5\u80cc\u9762\u8bd5\u9898\u3002\u5982\u679c\u6709\u65f6\u95f4\u7684\u8bdd\uff0c\u53ef\u4ee5 jd \u627e\u4e00\u672c redis \u4e66\u770b\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982343\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bottleimp <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u9762\u8bd5\u78b0\u5230\u8fd9\u79cd\uff0c\u4f60\u53ef\u4ee5\u8bf4\u6211\u6ca1\u770b\u8fc7 redis \u4ee3\u7801\uff0c\u4f46\u6211\u81ea\u5df1\u5b9e\u73b0\u7684\u8bdd\uff0c\u4f1a\u600e\u4e48\u600e\u4e48\u6765\u505a\uff0c\u5df4\u62c9\u5df4\u62c9\uff0c\u8bbe\u8ba1\u5927\u4f53\u5408\u7406\uff0c\u80fd\u8ba8\u8bba\u4e0b\u53bb\u5c31\u884c\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982344\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hstar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis \u7684\u9762\u8bd5\u95ee\u9898\uff0c\u300a redis \u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u300b\u770b\u5b8c\u57fa\u672c\u5168\u80fd\u7b54\uff0c\u5c31\u7b97\u90a3\u4e9b\u4e0d\u61c2\u7684\u6709\u70b9\u6df1\u5ea6\u7684\u95ee\u9898\uff0c\u4e5f\u80fd\u56de\u7b54\u5f97\u53ef\u5708\u53ef\u70b9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982345\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huntcool001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis.io \u5b98\u7f51\u4e0a\u4f60\u5168\u90e8\u770b\u4e00\u904d\u518d\u8bf4\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982346\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gen900 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f30\u8ba1\u9762\u8bd5\u5b98\u60f3\u542c\u4f60\u8bf4\u54c8\u5e0c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982347\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : danhahaha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gen900 \u5176\u5b9e\u66f4\u60f3\u542c\u5230\u4f60\u8bf4\u5e0c\u54c8\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u9762\u4e0d\u6539\u8272\u7684\u5fae\u7b11\u7740\u770b\u4e0b\u4e2a\u4eba\u7684\u7b80\u5386\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982348\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0x666666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u548c hashmap \u5dee\u4e0d\u591a \u4e3b\u8981\u662f\u901a\u8fc7 hash \u7b97 key                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982349\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lyhiving <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u8981\u662f\u770b\u4f60\u4e4b\u524d\u5e94\u7528\u6709\u6ca1\u6709\u6389\u8fc7\u5751\uff0c\u5f88\u591a\u539f\u7406\u5e76\u4e0d\u91cd\u8981\uff0c\u89e3\u51b3\u95ee\u9898\u7684\u80fd\u529b\u624d\u662f\u770b\u4e2d\u7684\u3002<br \/>redis \u5c31\u662f\u4e00\u4e2a KV \u6570\u636e\u5e93\uff0c\u6240\u6709\u7684\u6027\u80fd\u90fd\u5728 key \u4e0a\u9762\uff0c\u65e0\u6cd5\u5c31\u662f hash \u5bfb\u5740\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982350\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : optional <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8981\u770b\u4ec0\u4e48\u300e\u538b\u7f29\u5217\u8868\u300f\u7684\u4e66\uff0c\u548c\u9762\u8bd5\u5b98\u5bf9\u4e0d\u4e0a\u8bdd\uff0c \u5c11\u91cf\u6570\u636e\u4e0d\u7528 hash \u7528 ziplist \u662f\u56e0\u4e3a\u904d\u5386\u7684\u6210\u672c\u4e0d\u9ad8\uff08\u751a\u81f3\u66f4\u5feb\uff09\uff0c\u800c\u4e14\u66f4\u8282\u7ea6\u5185\u5b58\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982351\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : useben <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. redis \u5c31\u662f\u4e00\u4e2a\u5de8\u5927\u7684 kv \u5b58\u50a8, \u4e00\u4e2a\u5de8\u5927\u7684 hashtable, \u5f15\u51fa hash \u5bfb\u5740, hash \u7b97\u6cd5, hash \u78b0\u649e, rehash<br \/>2. \u4e1a\u52a1\u573a\u666f, \u6ca1\u6709\u4e5f\u8981\u7ed9\u641e\u51fa\u6765. \u5982\u62bd\u5956, \u4e00\u5f00\u59cb hash, \u540e\u6765 set, \u4e3a\u4e86\u53bb\u91cd. \u5982\u6392\u884c\u699c, \u4e00\u5f00\u59cb set, \u81ea\u5df1\u641c\u51fa\u6765\u904d\u5386\u6392\u5e8f, \u540e\u6765\u6362 zset&#8230;\u5176\u5b9e\u5c31\u662f\u5404\u4e2a\u6570\u636e\u7c7b\u578b\u7684\u4f7f\u7528\u573a\u666f\u5207\u6362                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982352\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mamahaha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ed9\u4f60\u9762\u8bd5\u7684\u4eba\u9047\u5230\u4e86\u51e0\u4e2a\u95ee\u9898\u4f46\u767e\u5ea6\u4e0d\u5230\uff0c\u6240\u4ee5\u5c31\u4ee5\u9762\u8bd5\u7684\u540d\u4e49\u628a\u9762\u8bd5\u8005\u558a\u6765\u95ee\u95ee\uff0c\u603b\u4f1a\u6709\u4e00\u4e9b\u4eba\u80fd\u544a\u8bc9\u4ed6\u67d0\u4e2a\u95ee\u9898\u7684\u7b54\u6848\u7684\u7528\u4e8e\u5b66\u4e60\u5370\u8bc1\u7684\uff0c\u4e5f\u603b\u4f1a\u6709\u67d0\u4e2a\u95ee\u9898\u7684\u7b54\u6848\u4e0d\u662f\u6bcf\u4e2a\u4eba\u90fd\u77e5\u9053\u7684\u3002 <br \/>\u6240\u4ee5\u5373\u53ef\u4ee5\u540d\u6b63\u8a00\u987a\u5730\u62d2\u7edd\u9762\u8bd5\u8005\uff0c\u53c8\u53ef\u4ee5\u4e0d\u51fa\u94b1\u3001\u4e0d\u5356\u4eba\u60c5\u3001\u4e0d\u8dd1\u817f\u3002\u3002\u3002\u8ba9\u81ea\u5df1\u7684\u77e5\u8bc6\u5f97\u4ee5\u589e\u957f\uff0c\u771f\u662f\u592a\u5212\u7b97\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982353\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : goodboy95 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis \u7684 list \u7ed3\u6784\u8fd8\u662f\u4e00\u4e2a\u94fe\u8868\uff0c\u4e0d\u8fc7\u6bcf\u4e2a\u8282\u70b9\u53ef\u80fd\u538b\u7f29\u5b58\u50a8\u4e86\u591a\u4e2a\u6570\u636e\uff08\u4e5f\u5c31\u662f\u6240\u8c13\u7684&#8221;\u538b\u7f29\u5217\u8868&#8221;\uff09\u3002<br \/>\u6211\u8bb0\u5f97\u6211\u4ee5\u524d\u770b\u7684\u662f\uff0c\u5982\u679c list \u5c3e\u8282\u70b9\u5927\u5c0f\u4e0d\u8d85\u8fc7 8KB\uff0c\u65b0\u589e\u7684\u6570\u636e\u90fd\u4f1a\u52a0\u5230\u5c3e\u8282\u70b9\u91cc\u9762\u538b\u7f29\u5b58\u50a8\uff0c\u8d85\u8fc7\u7684\u8bdd\u5c31\u65b0\u589e\u4e00\u4e2a\u8282\u70b9\u5b58\u50a8\u3002<br \/>\u4e0d\u8fc7\u73b0\u5728\u4e5f\u4e0d\u6562\u4fdd\u8bc1\u767e\u5206\u767e\u5bf9\u4e86\uff0c\u6709\u6bb5\u65f6\u95f4\u6ca1\u770b\u8fc7 redis \u5b9e\u73b0\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982354\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liunaijie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u501f\uff0c\u60f3\u8bf7\u6559\u4e00\u4e2a redis aof \u6301\u4e45\u5316\u7684\u95ee\u9898\uff1a https:\/\/www.v2ex.com\/t\/658102<br \/>\u5f00\u542f aof \u540e\uff0c\u624b\u52a8\u4f7f\u7528 BGREWRITEAOF \u547d\u4ee4\u540e aof \u6587\u4ef6\u53d8\u6210\u4e86\u4e8c\u8fdb\u5236\u6587\u4ef6\u662f\u5426\u6b63\u5e38                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982355\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxc1234 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gen900 \u8001\u54e5 6666666666\uff0c\u770b\u4e86\u4e0b\u8d44\u6599\uff0c\u53ef\u80fd\u771f\u7684\u662f\u60f3\u95ee\u8fd9\u4e2a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982356\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxc1234 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @0x666666 \u4f60\u662f\u6307\u7b2c\u4e00\u4e2a\u95ee\u9898\uff0c\u662f\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982357\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxc1234 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @useben \u4f60\u8fd9\u8fb9 1 \u548c 2 \u4e2d\u7684 hash \u662f\u4e0d\u4e00\u6837\u7684\u5427\uff0c1 \u7684 hash \u662f\u6307\u6563\u5217\u5427\uff0c2 \u7684 hash \u662f\u6307 value \u7684\u7c7b\u578b\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982358\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u8fd9\u5c97\u4f4d\u4e0d\u662f\u53bb\u5f00\u53d1 redis \u7684\u8bdd\uff0c\u53ea\u80fd\u8bf4\u62db\u8058\u65b9\u8fc7\u4e8e\u88c5\u903c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982359\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZehaiZhang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e4b\u524d\u6709\u88ab\u95ee\u8fc7 string \u7684\u5b58\u50a8\u539f\u7406\uff0c\u4e3b\u53ef\u4ee5\u5e26\u7740\u95ee\u9898\u4e00\u8d77\u8bfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982360\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : picone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis \u96c6\u7fa4\u6709\u4e2a\u95ee\u9898\uff0c\u662f\u6839\u636e key \u5206\u6563\u5230\u5404\u4e2a\u8282\u70b9\u7684\uff0c\u5982\u679c\u4f7f\u7528\u503c\u8f83\u5927\u7684\u7c7b\u578b\uff0c\u5982 hashmap\uff0c\u4f1a\u5bfc\u81f4\u5355\u4e2a\u8282\u70b9\u5bb9\u91cf\u8fc7\u9ad8\uff0c\u8fd9\u79cd\u60c5\u51b5\u53ef\u4ee5\u770b\u770b\u80fd\u4e0d\u80fd\u6539\u6210 string \u7c7b\u578b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982361\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huntcool001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @picone \u5b98\u7f51\u4e0a\u7684\u5efa\u8bae\u662f\u4e00\u4e2a\u5927\u7684 hashmap \u5206\u6210\u5c0f\u7684.. \u800c\u4e0d\u662f\u6539\u6210 string.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982362\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxc1234 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ZehaiZhang \u6069                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982363\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxc1234 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @picone <br \/>@huntcool001 <\/p>\n<p>\u65b0\u624b\u6c42\u6559\uff0credis \u6709 hashmap \u8fd9\u4e2a\u7c7b\u578b\u5417\uff1f\u8fd9\u8fb9\u7684 hashmap \u662f\u6307\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982364\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjj19950716 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis \u7684\u6e90\u7801\u662f\u771f\u7684\u597d\uff0c\u770b\u8d77\u6765\u5f88\u723d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982365\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : OysterQAQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1 redis \u5e95\u5c42\u7c7b\u4f3c hashmap<br \/>2 \u5e94\u8be5\u4ece\u8fd9\u4e9b\u6570\u636e\u7ed3\u6784\u7684\u64cd\u4f5c\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e0b\u624b(\u6839\u672c\u539f\u56e0\u662f\u5e95\u5c42\u6570\u636e\u7ed3\u6784\u7684\u5b9e\u73b0\u5bfc\u81f4\u7684)<br \/>3 ziplist \u770b\u4e00\u4e0b\u6e90\u4ee3\u7801,\u770b\u4e86\u6570\u636e\u7ed3\u6784\u5c31\u660e\u767d\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b ziplist \u4f1a\u4ea7\u751f\u6027\u80fd\u95ee\u9898,\u5c31\u4f1a\u660e\u767d\u5728\u4ec0\u4e48\u65f6\u5019\u8be5\u7528,3.0 \u8fd8\u662f 3.2 \u4e4b\u540e list \u5b9e\u73b0\u5c31\u662f quicklist \u4e86,ziplist \u5728 hash set \u90fd\u6709\u7528\u5230,\u5143\u7d20\u8f83\u5c11\u7684\u65f6\u5019\u904d\u5386\u53ef\u80fd\u6bd4 hash \u8fd8\u5feb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u9762\u8bd5\u88ab\u8650 redis\uff0c\u6240\u4ee5\u6765\u8fd9\u8fb9\u95ee&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\/92752"}],"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=92752"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92752\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92752"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}