{"id":4537,"date":"2024-04-17T00:19:00","date_gmt":"2024-04-16T16:19:00","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/%e9%9d%a2%e8%af%95\/%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aredis%e6%9c%89%e5%93%aa%e5%87%a0%e7%a7%8d%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%ef%bc%9f%e4%bd%bf%e7%94%a8%e5%9c%ba%e6%99%af%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"},"modified":"2024-04-17T00:19:00","modified_gmt":"2024-04-16T16:19:00","slug":"%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aredis%e6%9c%89%e5%93%aa%e5%87%a0%e7%a7%8d%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%ef%bc%9f%e4%bd%bf%e7%94%a8%e5%9c%ba%e6%99%af%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/%e9%9d%a2%e8%af%95\/%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aredis%e6%9c%89%e5%93%aa%e5%87%a0%e7%a7%8d%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%ef%bc%9f%e4%bd%bf%e7%94%a8%e5%9c%ba%e6%99%af%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","title":{"rendered":"\u9762\u8bd5\u5b98\uff1aRedis\u6709\u54ea\u51e0\u79cd\u6570\u636e\u7c7b\u578b\uff1f\u4f7f\u7528\u573a\u666f\u662f\u4ec0\u4e48\uff1f\u5206\u522b\u662f\u600e\u4e48\u5b9e\u73b0\u7684\uff1fZset\u4e3a\u4ec0\u4e48\u4e0d\u7528\u6811\u5b9e\u73b0\u5462\uff1f\u6570\u636e\u7c7b\u578b\u9898\u76ee4\u8fde\u95ee\u4f60\u63a5\u5f97\u4f4f\u4e48"},"content":{"rendered":"<div class='wxsyncmain'>\n<p><span style=\"text-align: left;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: var(--articleFontsize);letter-spacing: 0.034em;\">Redis\u6570\u636e\u7c7b\u578b\u662f\u9762\u8bd5\u5b98\u559c\u6b22\u95ee\u7684\u9879\u76ee\u4e4b\u4e00\uff0c\u4e5f\u662fRedis\u9762\u8bd5\u516b\u80a1\u6587\u4e2d\u5fc5\u987b\u719f\u7ec3\u638c\u63e1\u7684\u77e5\u8bc6\u70b9\u3002\u76f8\u4fe1\u5927\u90e8\u5206\u4eba\u90fd\u77e5\u9053Redis\u6709\u4e94\u5927\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff0c\u4f46\u662f\u5b83\u4eec\u4f7f\u7528\u573a\u666f\u6709\u54ea\u4e9b\u3001\u5206\u522b\u662f\u600e\u4e48\u5b9e\u73b0\u7684\u5462\uff1fRedis\u8fd8\u6709\u51e0\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u4f60\u80fd\u7b54\u51fa\u6765\u8ba9\u9762\u8bd5\u5b98\u773c\u524d\u4e00\u4eae\u4e48\uff1f<\/span><span style=\"text-align: left;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: var(--articleFontsize);letter-spacing: 0.034em;\"><\/span><\/p>\n<article data-identifier-application__slash__x-doc-key=\"Pd6l2YayNJ6NO7Ma\">\n<p style=\"text-align: left;\">\u9762\u8bd5\u5b98\u90fd\u559c\u6b22\u7528\u4e0d\u65ad\u6df1\u5165\u8ffd\u95ee\u7684\u65b9\u5f0f\uff0c\u6765\u770b\u5019\u9009\u4eba\u5230\u5e95\u5bf9\u4e00\u4e2a\u77e5\u8bc6\u70b9\u7684\u638c\u63e1\u7a0b\u5ea6\u5982\u4f55\uff0c\u5982\u679c\u9762\u8bd5\u5b98\u60f3\u63a2\u4f60\u7684\u201c\u5e95\u201d\uff0c\u5f80\u5f80\u4f1a\u53d1\u51fa\u4e00\u8fde\u4e32\u7684\u8ffd\u95ee\uff1f\u9664\u4e86\u4e0a\u8ff0\u95ee\u9898\uff0c\u53ef\u80fd\u8fd8\u4f1a\u95eeZset\uff08Sorted Set\uff09\u4e3a\u4ec0\u4e48\u8981\u7528\u8df3\u8868\u3001\u4e0d\u7528\u5e73\u8861\u6811\/\u4e8c\u53c9\u6811\/B+\u6811\u6765\u5b9e\u73b0\u5462\uff1f<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u4e0b\u9762\u8ba9\u6211\u4eec\u6765\u4e00\u8d77\u63a2\u8ba8\u4e0b\u8fd9\u4e9b\u9898\u76ee\u7684\u53c2\u8003\u56de\u7b54\uff0c\u8ba9\u4f60\u771f\u6b63\u9762\u5bf9\u8fd9\u4e9b\u95ee\u9898\u65f6\uff0c\u80fd\u591f\u5f97\u5fc3\u5e94\u624b\u3002<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;text-decoration: underline;color: rgb(255, 104, 39);\">Redis\u6570\u636e\u7c7b\u578b\u53ca\u5176\u4f7f\u7528\u573a\u666f\u3001\u5b9e\u73b0\u65b9\u5f0f\uff08\u5e95\u5c42\u6570\u636e\u7ed3\u6784\uff09<\/span><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">Redis \u63d0\u4f9b\u4e86\u4ee5\u4e0b\u4e94\u79cd\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff1a<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">1\u3001String\uff08\u5b57\u7b26\u4e32\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u5b58\u50a8\u5355\u4e2a\u503c\uff0c\u5982\u7528\u6237\u4fe1\u606f\u3001\u5546\u54c1\u8be6\u60c5\u7b49\u7b80\u5355\u6587\u672c\u6216\u4e8c\u8fdb\u5236\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f5c\u4e3a\u8ba1\u6570\u5668\uff0c\u5b9e\u73b0\u9012\u589e\/\u9012\u51cf\u64cd\u4f5c\uff0c\u5982\u7edf\u8ba1\u7f51\u9875\u8bbf\u95ee\u6b21\u6570\u3001\u5e93\u5b58\u6570\u91cf\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f5c\u4e3a\u5206\u5e03\u5f0f\u9501\u7684\u5b9e\u73b0\u57fa\u7840\uff0c\u5229\u7528\u5176\u539f\u5b50\u6027\u64cd\u4f5c\u4fdd\u969c\u5e76\u53d1\u5b89\u5168\u3002<\/p>\n<\/li>\n<li>\n<p>\u5171\u4eabSession\u4fe1\u606f\uff0c\u591a\u4e2a\u670d\u52a1\u90fd\u4ece\u540c\u4e00Redis\u67e5\u8be2Session\u4fe1\u606f\uff0c\u5224\u65ad\u7528\u6237\u662f\u5426\u767b\u5f55\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<p style=\"text-align: left;\">Redis \u4e2d\u7684 String \u91c7\u7528\u7b80\u5355\u52a8\u6001\u5b57\u7b26\u4e32\uff08SDS\uff09\u5b9e\u73b0\uff0cSDS \u4e0d\u4ec5\u53ef\u4ee5\u4fdd\u5b58\u6587\u672c\u6570\u636e\uff0c\u8fd8\u53ef\u4ee5\u4fdd\u5b58\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u62fc\u63a5\u5b57\u7b26\u4e32\u4e4b\u524d\u4f1a\u68c0\u67e5 SDS \u7a7a\u95f4\u662f\u5426\u6ee1\u8db3\u8981\u6c42\uff0c\u5982\u679c\u7a7a\u95f4\u4e0d\u591f\u4f1a\u81ea\u52a8\u6269\u5bb9\uff0c\u6240\u4ee5\u4e0d\u4f1a\u5bfc\u81f4\u7f13\u51b2\u533a\u6ea2\u51fa\u7684\u95ee\u9898\u3002\u6839\u636e\u4fdd\u5b58\u5bf9\u8c61\u957f\u77ed\uff0c\u7f16\u7801\u65b9\u5f0f\uff08encoding\uff09\u4e0d\u540c<span data-type=\"text\" style=\"vertical-align:super;\">[1]<\/span>\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100000781\" data-ratio=\"0.24351851851851852\"  data-type=\"png\" data-w=\"1080\" style=\"width:684px;height:166.44866920152091px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165516531.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100000781\" data-ratio=\"0.24351851851851852\"  data-type=\"png\" data-w=\"1080\" style=\"width:684px;height:166.44866920152091px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165516531.png\"><\/noscript><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">2\u3001Hash\uff08\u54c8\u5e0c\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u5b58\u50a8\u5bf9\u8c61\u6216\u7ed3\u6784\u5316\u7684\u6570\u636e\uff0c\u5982\u7528\u6237\u8d44\u6599\u3001\u5546\u54c1\u5c5e\u6027\u7b49\uff0c\u901a\u8fc7 field-value \u5f62\u5f0f\u7ec4\u7ec7\uff0c\u4fbf\u4e8e\u5feb\u901f\u8bbf\u95ee\u548c\u66f4\u65b0\u5355\u4e2a\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p>\u7528\u4f5c\u7f13\u5b58\uff0c\u5c06\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u4e00\u884c\u8bb0\u5f55\u5b8c\u6574\u5730\u5b58\u50a8\u4e3a\u4e00\u4e2a\u54c8\u5e0c\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Redis Hash \u91c7\u7528\u538b\u7f29\u5217\u8868\uff08ziplist\uff09\u6216\u54c8\u5e0c\u8868\uff08hashtable\uff09\u4e24\u79cd\u5e95\u5c42\u6570\u636e\u7ed3\u6784\u5b9e\u73b0\u3002\u5f53\u54c8\u5e0c\u5143\u7d20\u6570\u91cf\u8f83\u5c11\u4e14\u5143\u7d20\u503c\u8f83\u5c0f\uff08\u9ed8\u8ba4512\u4e2a\uff09\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u538b\u7f29\u5217\u8868\u4ee5\u8282\u7ea6\u7a7a\u95f4\uff1b\u968f\u7740\u5143\u7d20\u6570\u91cf\u589e\u957f\u6216\u503c\u5927\u5c0f\u8d85\u8fc7\u9608\u503c\uff0c\u81ea\u52a8\u8f6c\u6362\u4e3a\u54c8\u5e0c\u8868\u4ee5\u4fdd\u8bc1\u64cd\u4f5c\u6027\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p>\u538b\u7f29\u5217\u8868\u5b9e\u9645\u4e0a\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u6570\u7ec4\uff0c\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u90fd\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u6570\u636e\u3002\u548c\u6570\u7ec4\u4e0d\u540c\u7684\u662f\uff0c\u538b\u7f29\u5217\u8868\u5728\u8868\u5934\u6709\u4e09\u4e2a\u5b57\u6bb5 zlbytes\u3001zltail \u548c zllen\uff0c\u5206\u522b\u8868\u793a\u5217\u8868\u957f\u5ea6\u3001\u5217\u8868\u5c3e\u7684\u504f\u79fb\u91cf\u548c\u5217\u8868\u4e2d\u7684 entry \u4e2a\u6570\uff1b\u538b\u7f29\u5217\u8868\u5728\u8868\u5c3e\u8fd8\u6709\u4e00\u4e2a zlend\uff0c\u8868\u793a\u5217\u8868\u7ed3\u675f\u3002\u7f3a\u70b9\uff1a\u63d2\u5165\u5927\u5143\u7d20\u5bb9\u6613\u5f15\u53d1\u540e\u9762\u5143\u7d20\u7684prevlen\u5b57\u6bb5\u7684\u8fde\u9501\u66f4\u65b0\u3001\u5360\u7528\u7a7a\u95f4\u8c03\u6574\u7b49\u3002\u538b\u7f29\u5217\u8868\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100000784\" data-ratio=\"0.3388888888888889\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:253.25984251968504px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165519830.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100000784\" data-ratio=\"0.3388888888888889\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:253.25984251968504px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165519830.png\"><\/noscript><\/p>\n<\/li>\n<li style=\"color: rgb(0, 128, 255);\">\n<p><span style=\"color: rgb(0, 128, 255);\">\u5728 Redis 7.0\u4e2d\uff0c\u538b\u7f29\u5217\u8868\u6570\u636e\u7ed3\u6784\u5df2\u7ecf\u5e9f\u5f03\u4e86\uff0c\u4ea4\u7531 listpack \u6570\u636e\u7ed3\u6784\u6765\u5b9e\u73b0\u4e86\u3002listpack\u7ed3\u6784\u5982\u4e0b\u56fe<span data-type=\"text\" style=\"vertical-align: super;\">[3]<\/span>\uff1a<\/span><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100000785\" data-ratio=\"0.31851851851851853\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:238.0748898678414px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165522561.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100000785\" data-ratio=\"0.31851851851851853\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:238.0748898678414px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165522561.png\"><\/noscript><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">3\u3001List\uff08\u5217\u8868\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u5b9e\u73b0\u961f\u5217\u6216\u6808\u529f\u80fd\uff0c\u5982\u4efb\u52a1\u961f\u5217\u3001\u6d88\u606f\u961f\u5217\u7b49\uff0c\u901a\u8fc7 LPUSH\/RPOP \u6216 RPUSH\/LPOP \u64cd\u4f5c\u5b9e\u73b0\u5148\u8fdb\u5148\u51fa\uff08FIFO\uff09\u6216\u540e\u8fdb\u5148\u51fa\uff08LIFO\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u7684\u5b58\u50a8\uff0c\u5982\u7528\u6237\u6d4f\u89c8\u5386\u53f2\u3001\u65e5\u5fd7\u8bb0\u5f55\u7b49\uff0c\u5229\u7528\u5217\u8868\u7684\u6709\u5e8f\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Redis List \u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u53cc\u7aef\u94fe\u8868\uff08linked list\uff09\u6216\u538b\u7f29\u5217\u8868\uff08ziplist\uff09\u4f5c\u4e3a\u5e95\u5c42\u5b9e\u73b0\u3002\u5bf9\u4e8e\u5143\u7d20\u6570\u91cf\u8f83\u5c11\u6216\u5143\u7d20\u503c\u8f83\u5c0f\u7684\u5217\u8868\uff08\u9ed8\u8ba4512\u4e2a\uff09\uff0c\u4f7f\u7528\u538b\u7f29\u5217\u8868\u4ee5\u8282\u7701\u5185\u5b58\uff1b\u5f53\u5143\u7d20\u6570\u91cf\u589e\u957f\u6216\u503c\u5927\u5c0f\u8d85\u8fc7\u8bbe\u5b9a\u9608\u503c\u65f6\uff0c\u81ea\u52a8\u8f6c\u4e3a\u53cc\u7aef\u94fe\u8868\u4ee5\u4fdd\u8bc1\u5feb\u901f\u5730\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li style=\"color: rgb(0, 128, 255);\">\n<p>\u5728 Redis 3.2 \u7248\u672c\u4e4b\u540e\uff0cList \u6570\u636e\u7c7b\u578b\u5e95\u5c42\u6570\u636e\u7ed3\u6784\u5c31\u53ea\u7531 quicklist \u5b9e\u73b0\u4e86\uff0c\u66ff\u4ee3\u4e86\u53cc\u5411\u94fe\u8868\u548c\u538b\u7f29\u5217\u8868\u3002\u5982\u4e0b\u56fe\u6240\u793a[3]<span style=\"color: rgb(0, 128, 255);\">\uff1a<\/span><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100000783\" data-ratio=\"0.33425925925925926\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:250.16168327796234px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165525746.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100000783\" data-ratio=\"0.33425925925925926\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:250.16168327796234px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165525746.png\"><\/noscript><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">4\u3001Set\uff08\u96c6\u5408\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u5b58\u50a8\u552f\u4e00\u503c\u96c6\u5408\uff0c\u5982\u6807\u7b7e\u7cfb\u7edf\u4e2d\u7684\u7528\u6237\u6807\u7b7e\u3001\u793e\u4ea4\u7f51\u7edc\u4e2d\u7684\u5173\u6ce8\u5173\u7cfb\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u73b0\u4ea4\u96c6\u3001\u5e76\u96c6\u3001\u5dee\u96c6\u7b49\u96c6\u5408\u8fd0\u7b97\uff0c\u5982\u5171\u540c\u5173\u6ce8\u3001\u63a8\u8350\u597d\u53cb\u7b49\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Redis Set \u4f7f\u7528\u6574\u6570\u96c6\u5408\uff08int set\uff09\u6216\u54c8\u5e0c\u8868\uff08hashtable\uff09\u5b9e\u73b0\u3002\u5f53\u96c6\u5408\u5143\u7d20\u5168\u90e8\u4e3a\u6574\u6570\u4e14\u8303\u56f4\u5408\u9002\u65f6\uff0c\u4f7f\u7528\u6574\u6570\u96c6\u5408\u4ee5\u8282\u7701\u7a7a\u95f4\uff1b\u5426\u5219\u4f7f\u7528\u54c8\u5e0c\u8868\u6765\u4fdd\u8bc1\u552f\u4e00\u6027\u548c\u5feb\u901f\u589e\u5220\u67e5\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">5\u3001ZSet\uff08\u6709\u5e8f\u96c6\u5408\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u6392\u884c\u699c\u7cfb\u7edf\uff0c\u5982\u7528\u6237\u79ef\u5206\u6392\u540d\u3001\u70ed\u95e8\u6587\u7ae0\u7b49\uff0c\u6839\u636e\u5206\u6570\uff08score\uff09\u5bf9\u6210\u5458\uff08member\uff09\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/li>\n<li>\n<p>\u65f6\u95f4\u7a97\u53e3\u5185\u4e8b\u4ef6\u8ba1\u6570\uff0c\u5982\u6700\u8fd1\u6d3b\u8dc3\u7528\u6237\u3001\u6309\u65f6\u95f4\u6392\u5e8f\u7684\u65e5\u5fd7\u8bb0\u5f55\u7b49\uff0cscore \u4f5c\u4e3a\u65f6\u95f4\u6233\u6216\u5176\u4ed6\u6392\u5e8f\u4f9d\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u5730\u7406\u4f4d\u7f6e\u670d\u52a1\uff0c\u5229\u7528\u7ecf\u7eac\u5ea6\u4f5c\u4e3a score\uff0c\u5bf9\u5730\u70b9\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u548c\u6392\u5e8f\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Redis ZSet \u91c7\u7528\u8df3\u8dc3\u8868\uff08skiplist\uff09\u548c\u5b57\u5178\uff08dict\uff09\u76f8\u7ed3\u5408\u7684\u65b9\u5f0f\u5b9e\u73b0\u3002\u8df3\u8dc3\u8868\u63d0\u4f9b\u6709\u5e8f\u6027\uff0c\u901a\u8fc7\u591a\u5c42\u7d22\u5f15\u7ed3\u6784\u5b9e\u73b0\u5feb\u901f\u7684\u8303\u56f4\u67e5\u8be2\u548c\u6392\u5e8f\uff1b\u5b57\u5178\u5219\u7528\u4e8e\u786e\u4fdd\u6210\u5458\u7684\u552f\u4e00\u6027\u3002\u6bcf\u4e2a\u6210\u5458\u5728\u8df3\u8dc3\u8868\u548c\u5b57\u5178\u4e2d\u5404\u6709\u4e00\u4efd\u62f7\u8d1d\uff0c\u4ee5\u517c\u987e\u6392\u5e8f\u548c\u552f\u4e00\u6027\u68c0\u67e5\u3002<\/p>\n<\/li>\n<li>\n<p>\u8df3\u8868\u5728\u94fe\u8868\u7684\u57fa\u7840\u4e0a\uff0c\u589e\u52a0\u4e86\u591a\u7ea7\u7d22\u5f15\uff0c\u901a\u8fc7\u7d22\u5f15\u4f4d\u7f6e\u7684\u51e0\u4e2a\u8df3\u8f6c\uff0c\u5b9e\u73b0\u6570\u636e\u7684\u5feb\u901f\u5b9a\u4f4d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;text-indent: 32px;margin-left: 32px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100000782\" data-ratio=\"0.2638888888888889\"  data-type=\"png\" data-w=\"1080\" style=\"width:664px;height:175px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165529887.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100000782\" data-ratio=\"0.2638888888888889\"  data-type=\"png\" data-w=\"1080\" style=\"width:664px;height:175px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165529887.png\"><\/noscript><\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li style=\"color: rgb(0, 128, 255);\">\n<p><span style=\"color: rgb(0, 128, 255);\">\u5728 Redis 7.0\u4e2d\uff0c\u538b\u7f29\u5217\u8868\u6570\u636e\u7ed3\u6784\u5df2\u7ecf\u5e9f\u5f03\u4e86\uff0c\u4ea4\u7531 listpack \u6570\u636e\u7ed3\u6784\u6765\u5b9e\u73b0\u4e86\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u5b9e\u73b0\u65b9\u5f0f\u603b\u4f53\u5982\u56fe\u6240\u793a<span data-type=\"text\" style=\"vertical-align:super;\">[2]<\/span>\uff1a<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100000786\" data-ratio=\"0.6296296296296297\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:471.24px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165532782.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100000786\" data-ratio=\"0.6296296296296297\"  data-type=\"png\" data-w=\"1080\" style=\"width:748px;height:471.24px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165532782.png\"><\/noscript><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;text-decoration: underline;color: rgb(255, 104, 39);\">Redis\u8fd8\u6709\u54ea\u4e9b\u6570\u636e\u7c7b\u578b\uff1f<\/span><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u5982\u679c\u4f60\u60f3\u8ba9\u9762\u8bd5\u5b98\u773c\u524d\u4e00\u4eae\uff0c\u9664\u4e86\u4e0a\u8ff0\u4e94\u79cd\u57fa\u672c\u6570\u636e\u7c7b\u578b\u5916\uff0c\u8fd8\u53ef\u4ee5\u56de\u7b54\uff0cRedis \u8fd8\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u51e0\u79cd\u7279\u6b8a\u6570\u636e\u7c7b\u578b\uff0c\u8fdb\u4e00\u6b65\u6269\u5c55\u4e86\u5176\u5e94\u7528\u573a\u666f\u548c\u529f\u80fd\uff1a<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">1\u3001Bitmaps\uff08\u4f4d\u56fe\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u5927\u91cf\u4e8c\u8fdb\u5236\u4f4d\u8fdb\u884c\u9ad8\u6548\u64cd\u4f5c\u7684\u573a\u666f\uff0c\u5982\u7528\u6237\u7b7e\u5230\u3001\u6d3b\u8dc3\u7528\u6237\u7edf\u8ba1\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p>\u7a7a\u95f4\u9ad8\u6548\u7684\u5b58\u50a8\u5e03\u5c14\u72b6\u6001\u6216\u6807\u5fd7\u4f4d\uff0c\u5982\u7528\u6237\u662f\u5426\u5df2\u8bfb\u67d0\u6761\u6d88\u606f\u3001\u67d0\u4e2a\u5546\u54c1\u662f\u5426\u6709\u5e93\u5b58\u7b49\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Bitmaps \u5728 Redis \u4e2d\u5b9e\u9645\u4e0a\u662f String \u7c7b\u578b\u7684\u4e00\u79cd\u7279\u6b8a\u5e94\u7528\u3002\u901a\u5e38\u5c06\u4e00\u4e2a\u5927\u6574\u6570\u770b\u4f5c\u4e00\u7cfb\u5217\u8fde\u7eed\u7684\u4f4d\uff0c\u6bcf\u4e2a\u4f4d\u4ee3\u8868\u4e00\u4e2a\u72ec\u7acb\u7684\u72b6\u6001\u3002Redis \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u9488\u5bf9\u4f4d\u7684\u64cd\u4f5c\u547d\u4ee4\uff0c\u5982 SETBIT\u3001GETBIT\u3001BITCOUNT \u7b49\uff0c\u4f7f\u5f97\u7528\u6237\u80fd\u591f\u4ee5\u6781\u4f4e\u7684\u7a7a\u95f4\u6210\u672c\uff08\u6bcf\u4e2a\u4f4d\u4ec5\u5360\u7528 1 bit\uff09\u5bf9\u5927\u91cf\u4e8c\u8fdb\u5236\u4f4d\u8fdb\u884c\u5feb\u901f\u7684\u8bbe\u7f6e\u3001\u83b7\u53d6\u4e0e\u7edf\u8ba1\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">2\u3001HyperLogLog\uff08\u57fa\u6570\u4f30\u8ba1\u7b97\u6cd5\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u7528\u4e8e\u8fd1\u4f3c\u7edf\u8ba1\u5927\u91cf\u552f\u4e00\u5143\u7d20\u7684\u6570\u91cf\uff0c\u5982\u7f51\u7ad9\u72ec\u7acb\u8bbf\u5ba2\u6570\u3001\u552f\u4e00\u7528\u6237 ID \u8ba1\u6570\u7b49\uff0c\u65e0\u9700\u7cbe\u786e\u8ba1\u6570\u4f46\u5bf9\u5185\u5b58\u5360\u7528\u654f\u611f\u7684\u573a\u666f\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>HyperLogLog \u662f\u4e00\u79cd\u6982\u7387\u7b97\u6cd5\uff0c\u80fd\u5728\u5c0f\u5185\u5b58\u7a7a\u95f4\u5185\uff08\u901a\u5e38\u51e0\u5341\u5230\u51e0\u767e\u5b57\u8282\uff09\u63d0\u4f9b\u5bf9\u5927\u89c4\u6a21\u6570\u636e\u96c6\u57fa\u6570\uff08\u4e0d\u91cd\u590d\u5143\u7d20\u6570\u91cf\uff09\u7684\u4f30\u7b97\u3002Redis \u5c06 HyperLogLog \u7b97\u6cd5\u5b9e\u73b0\u4e3a\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u63d0\u4f9b PFADD\u3001PFCOUNT \u7b49\u547d\u4ee4\uff0c\u5141\u8bb8\u7528\u6237\u5411 HyperLogLog \u7ed3\u6784\u6dfb\u52a0\u5143\u7d20\uff0c\u5e76\u83b7\u53d6\u4f30\u7b97\u7684\u57fa\u6570\uff0c\u8bef\u5dee\u7387\u901a\u5e38\u57280.81%\u4ee5\u5185\uff0c\u7cbe\u786e\u8ba1\u6570\u65f6\u4e0d\u80fd\u4f7f\u7528\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">3\u3001Geo\uff08\u5730\u7406\u4f4d\u7f6e\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u5e26\u6709\u5730\u7406\u4f4d\u7f6e\u4fe1\u606f\u7684\u6570\u636e\u8fdb\u884c\u8ddd\u79bb\u67e5\u8be2\u3001\u8303\u56f4\u67e5\u8be2\u3001\u9644\u8fd1\u70b9\u67e5\u627e\u7b49\u64cd\u4f5c\u7684\u573a\u666f\uff0c\u5982\u5730\u56fe\u670d\u52a1\u3001LBS \u5e94\u7528\u3001\u793e\u4ea4\u7f51\u7edc\u4e2d\u57fa\u4e8e\u4f4d\u7f6e\u7684\u597d\u53cb\u63a8\u8350\u7b49\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Redis \u7684 Geo \u6570\u636e\u7c7b\u578b\u57fa\u4e8e ZSet \u5b9e\u73b0\uff0c\u901a\u8fc7\u5c06\u7ecf\u7eac\u5ea6\u4fe1\u606f\u8f6c\u6362\u4e3a\u5206\u503c\uff0c\u7ed3\u5408\u4e13\u7528\u7684\u5730\u7406\u7a7a\u95f4\u64cd\u4f5c\u547d\u4ee4\uff08\u5982 GEOADD\u3001GEODIST\u3001GEORADIUS\u3001GEORADIUSBYMEMBER\uff09\uff0c\u5b9e\u73b0\u4e86\u5bf9\u5730\u7406\u4f4d\u7f6e\u6570\u636e\u7684\u9ad8\u6548\u7ba1\u7406\u548c\u67e5\u8be2\u3002\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u6dfb\u52a0\u3001\u5220\u9664\u5730\u7406\u4f4d\u7f6e\u4fe1\u606f\uff0c\u4ee5\u53ca\u6839\u636e\u7ed9\u5b9a\u5750\u6807\u6216\u8ddd\u79bb\u8303\u56f4\u8fdb\u884c\u67e5\u8be2\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">4\u3001Streams\uff08\u6d41\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>\u9002\u7528\u4e8e\u5904\u7406\u6301\u7eed\u8ffd\u52a0\u7684\u4e8b\u4ef6\u5e8f\u5217\uff0c\u5982\u6d88\u606f\u961f\u5217\u3001\u6d3b\u52a8\u65e5\u5fd7\u3001\u7269\u8054\u7f51\u8bbe\u5907\u6570\u636e\u6d41\u7b49\uff0c\u652f\u6301\u6301\u4e45\u5316\u5b58\u50a8\u3001\u591a\u6d88\u8d39\u8005\u6d88\u8d39\u3001\u6d88\u606f\u5206\u7247\u7b49\u590d\u6742\u9700\u6c42\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>\uff1a<\/p>\n<ul style=\"list-style-type:circle;\" class=\"list-paddingleft-1\">\n<li>\n<p>Redis Streams \u662f\u4e00\u79cd\u903b\u8f91\u4e0a\u7c7b\u4f3c\u4e8e\u53d1\u5e03-\u8ba2\u9605\u6a21\u5f0f\uff0c\u4f46\u5177\u6709\u66f4\u5f3a\u6301\u4e45\u5316\u3001\u591a\u6d88\u8d39\u7ec4\u3001\u6d88\u606f\u56de\u6eaf\u7b49\u7279\u70b9\u7684\u6570\u636e\u7c7b\u578b\u3002\u6bcf\u4e2a Stream \u7531\u4e00\u7cfb\u5217\u5e26\u6709\u552f\u4e00 ID \u548c\u5143\u6570\u636e\uff08\u65f6\u95f4\u6233\u3001\u5b57\u6bb5\u503c\u7b49\uff09\u7684\u6d88\u606f\u7ec4\u6210\u3002Redis \u63d0\u4f9b XADD\u3001XREAD\u3001XGROUP \u7b49\u547d\u4ee4\uff0c\u652f\u6301\u5ba2\u6237\u7aef\u4ee5\u9ad8\u5e76\u53d1\u3001\u4f4e\u5ef6\u8fdf\u7684\u65b9\u5f0f\u751f\u6210\u3001\u6d88\u8d39\u548c\u7ba1\u7406\u6570\u636e\u6d41\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;color: rgb(0, 128, 255);\">5\u3001RedisObject\uff08\u81ea\u5b9a\u4e49\u6570\u636e\u7c7b\u578b\uff09<\/span><\/p>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff081\uff09\u4f7f\u7528\u573a\u666f<\/span>\uff1a<\/p>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p>RedisObject \u662f\u4e00\u79cd\u66f4\u4e3a\u62bd\u8c61\u548c\u7075\u6d3b\u7684\u6570\u636e\u7c7b\u578b\u6982\u5ff5\uff0c\u5b83\u6db5\u76d6\u4e86 Redis \u4e2d\u6240\u6709\u57fa\u672c\u6570\u636e\u7c7b\u578b\u4ee5\u53ca\u7279\u6b8a\u6570\u636e\u7c7b\u578b\u7684\u5b9e\u73b0\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5f00\u53d1\u8005\u5e76\u4e0d\u76f4\u63a5\u64cd\u4f5c RedisObject\uff0c\u800c\u662f\u901a\u8fc7\u4f7f\u7528 Redis \u63d0\u4f9b\u7684\u5404\u79cd\u6570\u636e\u7c7b\u578b\u547d\u4ee4\u4e0e\u4e4b\u4ea4\u4e92\u3002RedisObject \u4f5c\u4e3a Redis \u5185\u90e8\u7684\u6838\u5fc3\u6570\u636e\u7ed3\u6784\uff0c\u4e3a\u4e0d\u540c\u6570\u636e\u7c7b\u578b\u7684\u7279\u6027\u548c\u64cd\u4f5c\u63d0\u4f9b\u4e86\u7edf\u4e00\u7684\u5c01\u88c5\u548c\u7ba1\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u9ad8\u7ea7\u5f00\u53d1\u548c\u5b9a\u5236\u5316\u9700\u6c42\u4e2d\uff0cRedisObject \u7684\u5b58\u5728\u4e3a\u6269\u5c55 Redis \u529f\u80fd\u3001\u5b9e\u73b0\u7279\u5b9a\u4e1a\u52a1\u903b\u8f91\u6216\u96c6\u6210\u7b2c\u4e09\u65b9\u6a21\u5757\u63d0\u4f9b\u4e86\u53ef\u80fd\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u7f16\u5199\u81ea\u5b9a\u4e49 Redis \u6a21\u5757\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u521b\u5efa\u65b0\u7684\u6570\u636e\u7c7b\u578b\uff0c\u7ed3\u5408 Redis \u7684\u9ad8\u6027\u80fd\u7279\u6027\u5b9e\u73b0\u7279\u5b9a\u9886\u57df\u7684\u9ad8\u6548\u6570\u636e\u5b58\u50a8\u548c\u5904\u7406\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\uff082\uff09\u5b9e\u73b0\u65b9\u5f0f<\/span>:<\/p>\n<p style=\"text-align: left;margin-left: 32px;\">RedisObject \u7ed3\u6784\u5305\u542b\u4e86\u4ee5\u4e0b\u51e0\u4e2a\u5173\u952e\u90e8\u5206\uff1a<\/p>\n<p style=\"text-align: left;text-indent: 32px;margin-left: 32px;\">a.<code data-type=\"inlineCode\">type<\/code>\uff1a\u8868\u793a\u8be5\u5bf9\u8c61\u7684\u5b9e\u9645\u7c7b\u578b\uff0c\u5982 STRING\u3001LIST\u3001HASH\u3001SET\u3001ZSET\u3001BITMAPS\u3001HYPERLOGLOG\u3001GEO \u6216\u81ea\u5b9a\u4e49\u7c7b\u578b\u3002<\/p>\n<p style=\"text-align: left;text-indent: 32px;margin-left: 32px;\">b.<code data-type=\"inlineCode\">encoding<\/code>\uff1a\u8868\u793a\u5bf9\u8c61\u5185\u90e8\u6570\u636e\u7684\u7f16\u7801\u65b9\u5f0f\uff0c\u5982\u6574\u6570\u3001\u538b\u7f29\u5217\u8868\u3001\u53cc\u7aef\u94fe\u8868\u3001\u54c8\u5e0c\u8868\u3001\u8df3\u8dc3\u8868\u3001\u6574\u6570\u96c6\u5408\u3001\u5b57\u5178\u7b49\u3002\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u548c\u4f7f\u7528\u573a\u666f\u4e0b\uff0cRedis \u4f1a\u6839\u636e\u6570\u636e\u91cf\u3001\u5143\u7d20\u5206\u5e03\u7b49\u56e0\u7d20\u52a8\u6001\u9009\u62e9\u6700\u5408\u9002\u7684\u7f16\u7801\uff0c\u4ee5\u5e73\u8861\u5185\u5b58\u5360\u7528\u548c\u64cd\u4f5c\u6027\u80fd\u3002<\/p>\n<p style=\"text-align: left;text-indent: 32px;margin-left: 32px;\">c.<code data-type=\"inlineCode\">ptr<\/code>\uff1a\u6307\u5411\u5b9e\u9645\u6570\u636e\u5b58\u50a8\u533a\u57df\u7684\u6307\u9488\u3002\u6839\u636e<code data-type=\"inlineCode\">type<\/code>\u548c<code data-type=\"inlineCode\">encoding<\/code>\uff0c\u8be5\u6307\u9488\u53ef\u80fd\u6307\u5411\u4e0d\u540c\u7c7b\u578b\u548c\u7f16\u7801\u7684\u5177\u4f53\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<p style=\"text-align: left;text-indent: 32px;margin-left: 32px;\">d. \u5176\u4ed6\u5c5e\u6027\u548c\u5143\u6570\u636e\uff0c\u5982\u8fc7\u671f\u65f6\u95f4\uff08TTL\uff09\u3001\u5f15\u7528\u8ba1\u6570\uff08\u7528\u4e8e\u590d\u5236\u3001AOF\/RDB \u6301\u4e45\u5316\u7b49\u573a\u666f\uff09\u7b49\u3002<\/p>\n<p style=\"text-align: left;margin-left: 32px;\">RedisObject \u7684\u8bbe\u8ba1\u4f7f\u5f97 Redis \u80fd\u591f\u4ee5\u9ad8\u5ea6\u7edf\u4e00\u4e14\u7075\u6d3b\u7684\u65b9\u5f0f\u5904\u7406\u5404\u79cd\u6570\u636e\u7c7b\u578b\u3002\u5f53\u5ba2\u6237\u7aef\u6267\u884c\u76f8\u5173\u547d\u4ee4\u65f6\uff0cRedis \u4f1a\u6839\u636e\u547d\u4ee4\u53c2\u6570\u548c\u76ee\u6807\u5bf9\u8c61\u7684\u7c7b\u578b\u4e0e\u7f16\u7801\uff0c\u8c03\u7528\u76f8\u5e94\u7684\u5185\u90e8\u51fd\u6570\u8fdb\u884c\u64cd\u4f5c\u3002\u8fd9\u79cd\u8bbe\u8ba1\u4e0d\u4ec5\u7b80\u5316\u4e86 Redis \u5185\u90e8\u7684\u4ee3\u7801\u7ec4\u7ec7\u548c\u7ef4\u62a4\uff0c\u4e5f\u4f7f\u5f97 Redis \u80fd\u591f\u5728\u4e0d\u727a\u7272\u6027\u80fd\u7684\u524d\u63d0\u4e0b\uff0c\u8f7b\u677e\u652f\u6301\u65b0\u7684\u6570\u636e\u7c7b\u578b\u548c\u529f\u80fd\u6269\u5c55\u3002<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span data-type=\"text\" style=\"font-weight:bold;\">\u603b\u7ed3<\/span><\/p>\n<p style=\"text-align: left;\">Redis \u63d0\u4f9b\u4e86\u4e30\u5bcc\u591a\u6837\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec String\u3001Hash\u3001List\u3001Set\u3001ZSet \u4e94\u79cd\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff0c\u4ee5\u53ca Bitmaps\u3001HyperLogLog\u3001Geo\u3001Streams \u56db\u79cd\u7279\u6b8a\u6570\u636e\u7c7b\u578b\u3002\u8fd9\u4e9b\u6570\u636e\u7c7b\u578b\u8986\u76d6\u4e86\u591a\u79cd\u5e38\u89c1\u5e94\u7528\u573a\u666f\uff0c\u5982\u7f13\u5b58\u3001\u961f\u5217\u3001\u6392\u884c\u699c\u3001\u8ba1\u6570\u5668\u3001\u552f\u4e00\u503c\u96c6\u5408\u3001\u5730\u7406\u4f4d\u7f6e\u670d\u52a1\u3001\u57fa\u6570\u4f30\u7b97\u3001\u4f4d\u56fe\u64cd\u4f5c\u3001\u4e8b\u4ef6\u6d41\u5904\u7406\u7b49\u3002\u800c\u4f5c\u4e3a Redis \u5185\u90e8\u6838\u5fc3\u6570\u636e\u7ed3\u6784\u7684 RedisObject\uff0c\u5219\u4e3a\u8fd9\u4e9b\u6570\u636e\u7c7b\u578b\u7684\u7edf\u4e00\u7ba1\u7406\u3001\u52a8\u6001\u7f16\u7801\u9009\u62e9\u4ee5\u53ca\u529f\u80fd\u6269\u5c55\u63d0\u4f9b\u4e86\u575a\u5b9e\u7684\u57fa\u7840\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u8fd0\u7528\u8fd9\u4e9b\u6570\u636e\u7c7b\u578b\uff0c\u5f00\u53d1\u8005\u80fd\u591f\u5145\u5206\u53d1\u6325 Redis \u7684\u9ad8\u6027\u80fd\u3001\u4f4e\u5ef6\u8fdf\u7279\u6027\uff0c\u6784\u5efa\u9ad8\u6548\u3001\u53ef\u6269\u5c55\u7684\u5e94\u7528\u7cfb\u7edf\u3002<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\"><span style=\"font-weight: bold;text-decoration: underline;color: rgb(255, 104, 39);\">\u4e3a\u4f55 ZSet \u4e0d\u4f7f\u7528\u4e8c\u53c9\u6811\/\u7ea2\u9ed1\u6811\/B+\u6811\u5b9e\u73b0\uff1f<\/span><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u5c3d\u7ba1 B+\u6811\u662f\u4e00\u79cd\u5e38\u7528\u4e8e\u6570\u636e\u5e93\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u6709\u5e8f\u6570\u636e\u5b58\u50a8\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5177\u6709\u826f\u597d\u7684\u67e5\u8be2\u6027\u80fd\u548c\u8f83\u9ad8\u7684\u7a7a\u95f4\u5229\u7528\u7387\uff0c\u4f46 Redis \u5728\u8bbe\u8ba1 ZSet \u65f6\u9009\u62e9\u4f7f\u7528\u8df3\u8dc3\u8868\u800c\u975e B+\u6811\uff0c\u4e3b\u8981\u539f\u56e0\u53ef\u80fd\u5305\u62ec\uff1a<\/p>\n<ol class=\"list-paddingleft-1\">\n<li style=\"color: rgb(0, 128, 255);\">\n<p><span style=\"color: rgb(0, 128, 255);\"><span data-type=\"text\" style=\"font-weight: bold;\">\u8303\u56f4\u67e5\u8be2\u6027\u80fd<\/span>\uff1a<\/span><\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p>\u8df3\u8dc3\u8868\u7684\u5c42\u6b21\u5316\u7d22\u5f15\u7ed3\u6784\u4f7f\u5f97\u5b83\u80fd\u591f\u5feb\u901f\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\uff0c\u65e0\u9700\u50cf B+\u6811\u90a3\u6837\u9700\u8981\u4ece\u6839\u8282\u70b9\u9010\u5c42\u904d\u5386\u5230\u53f6\u5b50\u8282\u70b9\u3002\u5c24\u5176\u662f\u5728\u5904\u7406\u5927\u91cf\u8303\u56f4\u67e5\u8be2\u7684\u573a\u666f\uff08\u5982\u6392\u884c\u699c\u5206\u9875\u5c55\u793a\u3001\u5730\u7406\u5750\u6807\u8303\u56f4\u68c0\u7d22\uff09\u65f6\uff0c\u8df3\u8dc3\u8868\u7684\u4f18\u52bf\u66f4\u4e3a\u660e\u663e\u3002<\/p>\n<\/li>\n<\/ul>\n<li style=\"color: rgb(0, 128, 255);\">\n<p><span style=\"color: rgb(0, 128, 255);\"><span data-type=\"text\" style=\"font-weight: bold;\">\u5185\u5b58\u4f7f\u7528<\/span>\uff1a<\/span><\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p><span data-type=\"text\" style=\"background-color:rgb(252, 252, 250);\">\u53ef\u4ee5\u6709\u6548\u5730\u63a7\u5236\u8df3\u8868\u7684\u7d22\u5f15\u5c42\u7ea7\uff0c\u6765\u63a7\u5236\u5185\u5b58\u7684\u6d88\u8017\uff0c<\/span>Redis\u662f\u76f4\u63a5\u64cd\u4f5c\u5185\u5b58\u7684\u5e76\u4e0d\u9700\u8981\u78c1\u76d8IO\uff0c\u800cMySQL\u9700\u8981\u53bb\u8bfb\u53d6IO\uff0c\u6240\u4ee5MySQL\u8981\u4f7f\u7528B+\u6811\u7684\u65b9\u5f0f\u51cf\u5c11\u78c1\u76d8IO\uff08B+\u6811\u7684\u539f\u7406\u662f\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u6570\u636e\uff0c\u975e\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u7d22\u5f15\uff0c\u6bcf\u6b21\u8bfb\u53d6\u78c1\u76d8\u9875\u65f6\u5c31\u4f1a\u8bfb\u53d6\u4e00\u6574\u4e2a\u8282\u70b9\uff0c\u6bcf\u4e2a\u53f6\u5b50\u8282\u70b9\u8fd8\u6709\u6307\u5411\u524d\u540e\u8282\u70b9\u7684\u6307\u9488\uff0c\u4e3a\u7684\u662f\u6700\u5927\u9650\u5ea6\u5730\u964d\u4f4e\u78c1\u76d8\u7684IO\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e8c\u53c9\u6811\/\u7ea2\u9ed1\u6811\u5c42\u7ea7\u8f83\u9ad8\uff0c\u5185\u5b58\u5360\u7528\u5927\uff1bB+\u6811\u7684\u7a7a\u95f4\u5229\u7528\u7387\u8f83\u9ad8\uff0c\u4f46\u5176\u8282\u70b9\u95f4\u590d\u6742\u7684\u6307\u9488\u7ed3\u6784\u53ef\u80fd\u5bfc\u81f4\u5185\u5b58\u5206\u914d\u4e0d\u8fde\u7eed\uff0c\u4ece\u800c\u589e\u52a0\u5185\u5b58\u5360\u7528\u3002<\/p>\n<\/li>\n<\/ul>\n<li style=\"color: rgb(0, 128, 255);\">\n<p><span style=\"color: rgb(0, 128, 255);\"><span data-type=\"text\" style=\"font-weight: bold;\">\u7b80\u5355\u6027\u4e0e\u5b9e\u73b0\u6210\u672c<\/span>\uff1a<\/span><\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p>\u8df3\u8dc3\u8868\u662f\u4e00\u79cd\u76f8\u5bf9\u7b80\u5355\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5176\u903b\u8f91\u6e05\u6670\u3001\u6613\u4e8e\u5b9e\u73b0\u548c\u7ef4\u62a4\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cB+\u6811\u7684\u5b9e\u73b0\u8f83\u4e3a\u590d\u6742\uff0c\u6d89\u53ca\u5230\u8282\u70b9\u5206\u88c2\u3001\u5408\u5e76\u7b49\u64cd\u4f5c\uff0c\u5bf9\u4e8e\u8ffd\u6c42\u7b80\u6d01\u9ad8\u6548\u7684 Redis \u6765\u8bf4\uff0c\u8df3\u8dc3\u8868\u662f\u66f4\u8f7b\u91cf\u7ea7\u7684\u9009\u62e9\u3002<\/p>\n<\/li>\n<\/ul>\n<li style=\"color: rgb(0, 128, 255);\">\n<p><span style=\"color: rgb(0, 128, 255);\"><span data-type=\"text\" style=\"color: rgb(0, 128, 255);font-weight: bold;\">\u9ad8\u6548\u63d2\u5165\u4e0e\u5220\u9664<\/span>\uff1a<\/span><\/p>\n<\/li>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p>\u8df3\u8dc3\u8868\u652f\u6301\u5728 O(logN)\u65f6\u95f4\u590d\u6742\u5ea6\u5185\u5b8c\u6210\u63d2\u5165\u3001\u5220\u9664\u548c\u67e5\u627e\u64cd\u4f5c\uff0c\u4e0e B+\u6811\u76f8\u5f53\u3002\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8df3\u8dc3\u8868\u7684\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u901a\u5e38\u80fd\u66f4\u5feb\u5730\u5b8c\u6210\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u50cf B+\u6811\u90a3\u6837\u9891\u7e41\u8c03\u6574\u8282\u70b9\u4e4b\u95f4\u7684\u6307\u9488\u5173\u7cfb\u3002<\/p>\n<\/li>\n<\/ul>\n<\/ol>\n<p style=\"text-align: left;\">\u7efc\u4e0a\u6240\u8ff0\uff0cRedis \u9009\u62e9\u8df3\u8dc3\u8868\u800c\u975e B+\u6811\u6765\u5b9e\u73b0 ZSet\uff0c\u4e3b\u8981\u662f\u51fa\u4e8e\u826f\u597d\u8303\u56f4\u67e5\u8be2\u6027\u80fd\u3001\u5185\u5b58\u4f7f\u7528\u6548\u7387\u3001\u7b80\u5355\u6027\u3001\u4ee5\u53ca\u9ad8\u6548\u64cd\u4f5c\u7684\u8003\u8651\u3002\u8fd9\u79cd\u8bbe\u8ba1\u9009\u62e9\u5728\u5b9e\u8df5\u4e2d\u5df2\u88ab\u8bc1\u660e\u80fd\u591f\u5f88\u597d\u5730\u6ee1\u8db3 Redis \u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\uff0c\u7279\u522b\u662f\u5728\u9ad8\u5e76\u53d1\u3001\u4f4e\u5ef6\u8fdf\u7684\u73af\u5883\u4e2d\u8868\u73b0\u51fa\u8272\u3002<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u53c2\u8003\uff1a<\/p>\n<p style=\"text-align: left;\">[1]https:\/\/xiaolincoding.com\/redis\/data_struct\/command.html<\/p>\n<p style=\"text-align: left;\">[2]https:\/\/xiaolincoding.com\/redis\/base\/redis_interview.html<\/p>\n<p style=\"text-align: left;\">[3]<span data-type=\"text\">https:\/\/xiaolincoding.com\/redis\/data_struct\/data_struct.html<\/span><\/p>\n<\/article>\n<article data-identifier-application__slash__x-doc-key=\"Pd6l2YayNJ6NO7Ma\">\n<p style=\"text-align: center;\"><span data-type=\"text\"><span style=\"color: rgb(61, 167, 66);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: normal;text-align: center;caret-color: rgb(0, 0, 0);text-wrap: wrap;background-color: rgb(255, 255, 255);\">\u70b9\u51fb\u5173\u6ce8\u6211\uff0c\u4ea4\u4e2a\u670b\u53cb\u5427\uff01<\/span><\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-id=\"Mzg3MjY4MTk1Mw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/KggGlIFpJnvGLic3MVSOaKUHmTm3wX83La2CwnjCIFQVNMKkg5q9LibnPNyqNl3IQTUeTY7TolSTOtlPkPJe5oAw\/0?wx_fmt=png\" data-nickname=\"\u7a0b\u5e8f\u5458Aike\" data-alias=\"codeaike\" data-signature=\"\u524d\u534e\u4e3a\u3001\u5934\u6761\u7a0b\u5e8f\u5458\uff0c\u73b0\u67d0\u4e92\u8054\u7f51\u516c\u53f8\u9ad8\u7ea7\u6280\u672f\u7ecf\u7406\uff0c\u4e13\u6ce8\u6280\u672f\u9762\u8bd5\u3001\u5fae\u670d\u52a1\u3001\u804c\u573a\u8ba4\u77e5\u3001\u6280\u672f\u7ba1\u7406\u3001DevOps\u4e0e\u7814\u53d1\u6548\u80fd\u7b49\u9886\u57df\u3002\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u516c\u4f17\u53f7\uff0c\u5b66\u6280\u672f\u3001\u804a\u804c\u573a\u3001\u63d0\u8ba4\u77e5\u3001\u7ec8\u8eab\u6210\u957f\uff01\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<\/article>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u7a0b\u5e8f\u5458Aike              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>Redis\u6570\u636e\u7c7b\u578b\u662f\u9762\u8bd5\u5b98\u559c\u6b22\u95ee\u7684\u9879\u76ee\u4e4b\u4e00\uff0c\u4e5f\u662fRedis\u9762\u8bd5\u516b\u80a1\u6587\u4e2d\u5fc5\u987b\u719f\u7ec3\u638c\u63e1\u7684\u77e5\u8bc6\u70b9\u3002\u76f8\u4fe1\u5927\u90e8\u5206\u4eba\u90fd\u77e5\u9053Redis\u6709\u4e94\u5927\u57fa\u672c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[30],"tags":[],"class_list":["post-4537","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-30"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165513606-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165516531.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165513606-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165513606.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165516531.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165513606-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165513606.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165513606.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165516531.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165516531.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165519830.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165519830.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165522561.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165522561.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165525746.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165525746.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165529887.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165529887.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165532782.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165532782.png","id":"image11"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"\u9762\u8bd5","post_date":"2024-04-16","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":401,"next_post_id":4108,"next_post_title":"\u9762\u8bd5\u5b98\uff1aJava\u4e2dThreadLocal\u4e3a\u4ec0\u4e48\u4f1a\u53d1\u751f\u5185\u5b58\u6cc4\u6f0f\uff1f","previous_post_id":4623,"previous_post_title":"\u5403\u900fRedis\u7cfb\u5217\uff1a\u9ad8\u53ef\u7528\u7684\u54e8\u5175\u6a21\u5f0f","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=4537"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4537\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4528"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}