
{"id":1109,"date":"2020-10-11T22:44:47","date_gmt":"2020-10-11T14:44:47","guid":{"rendered":"https:\/\/www.changxuan.top\/?p=1109"},"modified":"2020-11-29T12:46:54","modified_gmt":"2020-11-29T04:46:54","slug":"%e3%80%8credis%e3%80%8d%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/www.changxuan.top\/?p=1109","title":{"rendered":"Redis\u4e2d\u7684\u5b57\u7b26\u4e32"},"content":{"rendered":"<section id=\"nice\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px; color: black; padding: 0 10px; line-height: 1.6; word-spacing: 0px; letter-spacing: 0px; word-break: break-word; word-wrap: break-word; text-align: left; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;\">\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">\u7b80\u4ecb<\/span><span class=\"suffix\"><\/span><\/h2>\n<blockquote class=\"multiquote-1\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border: none; display: block; font-size: 0.9em; overflow: auto; overflow-scrolling: touch; border-left: 3px solid rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.05); color: #6a737d; padding-top: 10px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; margin-bottom: 20px; margin-top: 20px;\">\n<p style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0px; color: black; line-height: 26px;\">Redis \u4e2d\u81ea\u5b9a\u4e49\u7684\u5b57\u7b26\u4e32\u7ed3\u6784\u3002<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u5b57\u7b26\u4e32\u662f Redis \u4e2d\u6700\u5e38\u7528\u7684\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5728 Redis \u4e2d\u4e13\u95e8\u5c01\u88c5\u4e86\u4e00\u4e2a\u5b57\u7b26\u4e32\u7ed3\u6784\u4f53\u2014\u2014\u7b80\u5355\u52a8\u6001\u5b57\u7b26\u4e32\uff08Simple Dynamic String, SDS\uff09\u3002\u5176\u7ed3\u6784\u4f53\u5982\u4e0b\uff1a<\/p>\n<pre class=\"custom\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px; margin-bottom: 10px; border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block; background: url(https:\/\/www.changxuan.top\/wp-content\/uploads\/2020\/11\/point.png); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #fafafa; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;\"><\/span><code class=\"hljs\" style=\"overflow-x: auto; padding: 16px; color: #383a42; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #fafafa; border-radius: 5px;\"><span class=\"hljs-class\" style=\"line-height: 26px;\"><span class=\"hljs-keyword\" style=\"color: #a626a4; line-height: 26px;\">struct<\/span>&nbsp;<span class=\"hljs-title\" style=\"color: #c18401; line-height: 26px;\">sdshdr<\/span>&nbsp;{<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic; line-height: 26px;\">\/\/&nbsp;\u8bb0\u5f55&nbsp;buf&nbsp;\u6570\u7ec4\u4e2d\u5df2\u4f7f\u7528\u5b57\u8282\u7684\u6570\u91cf\u65e2&nbsp;SDS&nbsp;\u4e2d\u6240\u4fdd\u5b58\u5b57\u7b26\u4e32\u7684\u957f\u5ea6<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"hljs-keyword\" style=\"color: #a626a4; line-height: 26px;\">int<\/span>&nbsp;len;\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic; line-height: 26px;\">\/\/&nbsp;\u8bb0\u5f55&nbsp;buf&nbsp;\u6570\u7ec4\u4e2d\u672a\u4f7f\u7528\u5b57\u8282\u7684\u6570\u91cf<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"hljs-keyword\" style=\"color: #a626a4; line-height: 26px;\">int<\/span>&nbsp;<span class=\"hljs-built_in\" style=\"color: #c18401; line-height: 26px;\">free<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic; line-height: 26px;\">\/\/&nbsp;\u5b57\u8282\u6570\u7ec4\uff0c\u7528\u4e8e\u4fdd\u5b58\u5b57\u7b26\u4e32\u3002<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"hljs-keyword\" style=\"color: #a626a4; line-height: 26px;\">char<\/span>&nbsp;buf[];\n}\n<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u5f53 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">len<\/code> \u7684\u503c\u4e3a 8 \u65f6\uff0c\u8868\u793a\u5728 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code> \u6570\u7ec4\u4e2d\u4fdd\u5b58\u4e86\u4e00\u4e2a 8 \u5b57\u8282\u957f\u7684\u5b57\u7b26\u4e32\uff1b\u5f53 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">free<\/code> \u7684\u503c\u4e3a 2 \u65f6\uff0c\u8868\u793a\u5728 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code> \u6570\u7ec4\u4e2d\u8fd8\u6709\u4e24\u4e2a\u5b57\u8282\u7684\u7a7a\u95f4\u672a\u4f7f\u7528\u3002\u5982\u679c\u4e3a 0 \uff0c\u5219\u8868\u793a\u5f53\u524d <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code> \u6570\u7ec4\u7684\u7a7a\u95f4\u5df2\u7ecf\u5168\u90e8\u5206\u914d\u5b8c\u6bd5\uff1b<code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code> \u5219\u662f\u4e00\u4e2a <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">char<\/code> \u7c7b\u578b\u7684\u6570\u7ec4\u3002SDS \u9075\u5faa\u4e86C\u5b57\u7b26\u4e32\u4ee5\u7a7a\u5b57\u7b26\u7ed3\u5c3e\u7684\u60ef\u4f8b\uff0c\u5373\u5b58\u50a8\u5728 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code> \u4e2d\u7684\u5b57\u7b26\u4e32\u672b\u5c3e\u90fd\u4f1a\u7d27\u8ddf\u4e00\u4e2a\u7a7a\u5b57\u7b26 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">\\0<\/code> \uff0c\u8fd9\u4e2a\u7a7a\u5b57\u7b26\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4\u662f\u900f\u660e\u7684\uff0c\u5b83\u5e76\u4e0d\u4f1a\u88ab\u8ba1\u5165 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">len<\/code> \u4e2d\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">\u4f18\u70b9<\/span><span class=\"suffix\"><\/span><\/h2>\n<blockquote class=\"multiquote-1\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border: none; display: block; font-size: 0.9em; overflow: auto; overflow-scrolling: touch; border-left: 3px solid rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.05); color: #6a737d; padding-top: 10px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; margin-bottom: 20px; margin-top: 20px;\">\n<p style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0px; color: black; line-height: 26px;\">\u4e3a\u4ec0\u4e48\u8981\u5728 Redis \u4e2d\u8981\u81ea\u5b9a\u4e49\u5b57\u7b26\u4e32\u7684\u6570\u636e\u7ed3\u6784\uff1f<\/p>\n<\/blockquote>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 20px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">1 \u65f6\u95f4\u590d\u6742\u5ea6<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u9996\u5148\uff0c\u7531\u4e0a\u9762\u4ee3\u7801\u6211\u4eec\u53ef\u4ee5\u77e5\u9053\u901a\u8fc7 SDS \u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u7684<strong style=\"font-weight: bold; color: black;\">\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a O(1)<\/strong>\u3002\u800c\u5982\u679c\u4f7f\u7528 C \u5b57\u7b26\u4e32\u6bcf\u6b21\u83b7\u53d6\u5b57\u7b26\u4e32\u957f\u5ea6\u65f6\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u5219\u4e3a O(N)\u3002\u5373\u5f53\u6211\u4eec\u4f7f\u7528 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">STRLEN<\/code> \u547d\u4ee4\u83b7\u53d6\u67d0\u4e2a\u952e\u503c\u7684\u957f\u5ea6\u65f6\u4e0d\u7528\u62c5\u5fc3\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 20px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">2 \u7f13\u51b2\u533a\u6ea2\u51fa<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u5176\u6b21\uff0c<strong style=\"font-weight: bold; color: black;\">\u53ef\u4ee5\u907f\u514d\u7f13\u51b2\u533a\u6ea2\u51fa\u95ee\u9898<\/strong>\u3002\u4f8b\u5982\uff0c\u4e24\u4e2aC\u5b57\u7b26\u4e32\u5728\u5185\u5b58\u4e2d\u7d27\u6328\u7740\uff0c\u5982\u679c\u6ca1\u6709\u63d0\u524d\u7ed9\u524d\u4e00\u4e2a\u5b57\u7b26\u4e32\u5206\u914d\u8db3\u591f\u7a7a\u95f4\u7684\u60c5\u51b5\u4e0b\u5c31\u4f7f\u7528 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">strcat<\/code> \u51fd\u6570\u5728\u5176\u672b\u5c3e\u8ffd\u52a0\u65b0\u7684\u5b57\u7b26\u4e32\u3002\u90a3\u4e48\u65b0\u62fc\u63a5\u7684\u5b57\u7b26\u4e32\u5c31\u4f1a\u6ea2\u51fa\u5230\u540e\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u7a7a\u95f4\u4e2d\uff0c\u4ece\u800c\u5bfc\u81f4\u540e\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u5185\u5bb9\u53d1\u751f\u6539\u53d8\u3002\u4f46\u662f\u5728 SDS \u4e2d\uff0c\u5bf9\u5185\u5bb9\u8fdb\u884c\u4fee\u6539\u4e4b\u524d\u4f1a\u5148\u68c0\u67e5\u5176\u5185\u5b58\u7a7a\u95f4\u662f\u5426\u6ee1\u8db3\u8981\u6c42\uff0c\u5982\u679c\u4e0d\u6ee1\u8db3\u8981\u6c42\uff0c\u5219\u4f1a\u81ea\u52a8\u5c06\u7a7a\u95f4\u6269\u5c55\u81f3\u6240\u9700\u8981\u7684\u5927\u5c0f\u3002\u6269\u5c55\u7a7a\u95f4\u5927\u5c0f\u7684\u64cd\u4f5c\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4\u4e5f\u662f\u900f\u660e\u7684\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u53e6\u5916\uff0c\u4e3a\u4e86\u907f\u514d\u53ef\u80fd\u7531\u4e8e\u9891\u7e41\u7684\u4fee\u6539\u5b57\u7b26\u4e32\u5185\u5bb9\uff0c\u800c\u5bfc\u81f4\u4ea7\u751f\u8f83\u4e3a\u8017\u65f6\u7684\u5185\u5b58\u91cd\u5206\u914d\u95ee\u9898\u3002SDS \u901a\u8fc7\u4ee5<strong style=\"font-weight: bold; color: black;\">\u7a7a\u95f4\u6362\u65f6\u95f4<\/strong>\u7684\u65b9\u5f0f\u5373<strong style=\"font-weight: bold; color: black;\">\u672a\u4f7f\u7528\u7a7a\u95f4<\/strong>\u6765\u5c3d\u91cf\u907f\u514d\u8fd9\u79cd\u95ee\u9898\u3002\u5728 SDS\u4e2d\u5b9e\u73b0\u4e86<strong style=\"font-weight: bold; color: black;\">\u7a7a\u95f4\u9884\u5206\u914d<\/strong>\u548c<strong style=\"font-weight: bold; color: black;\">\u60f0\u6027\u7a7a\u95f4\u91ca\u653e<\/strong>\u4e24\u79cd\u4f18\u5316\u7b56\u7565\u3002<\/p>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 18px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">\u4f18\u5316\u7b56\u7565<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h4>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 16px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">\u7a7a\u95f4\u9884\u5206\u914d<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h5>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u5f53 SDS \u4e2d\u7684\u5b57\u7b26\u4e32<strong style=\"font-weight: bold; color: black;\">\u53d8\u957f<\/strong>\u65f6\uff0c<strong style=\"font-weight: bold; color: black;\">\u7a0b\u5e8f\u5148\u5224\u65ad\u5f53\u524d\u95f2\u7f6e\u7a7a\u95f4\u662f\u5426\u6ee1\u8db3\u9700\u6c42<\/strong>\u3002\u5982\u679c\u4e0d\u6ee1\u8db3\uff0c\u5219\u6309\u7167<strong style=\"font-weight: bold; color: black;\">\u7a7a\u95f4\u9884\u5206\u914d<\/strong>\u7684\u7b56\u7565\u5bf9\u7a7a\u95f4\u8fdb\u884c\u6269\u5c55\u3002Redis \u4e0d\u4ec5\u4ec5\u53ea\u5206\u914d\u6240\u9700\u8981\u7684\u7a7a\u95f4\u5927\u5c0f\uff0c\u5219\u662f\u6839\u636e\u89c4\u5219\u591a\u5206\u914d\u4e00\u4e9b\u7a7a\u95f4\u3002\u5f53 SDS \u4fee\u6539\u540e\u7684\u65b0\u503c\u957f\u5ea6<strong style=\"font-weight: bold; color: black;\">\u5c0f\u4e8e 1MB<\/strong>\uff08<code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">len<\/code> \u7684\u957f\u5ea6\uff09\u3002\u90a3\u4e48\u7a0b\u5e8f\u5c06\u4f1a\u5206\u914d\u548c <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">len<\/code> \u540c\u6837\u5927\u5c0f\u7684\u95f2\u7f6e\u7a7a\u95f4\uff0c\u5373 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">len = free<\/code> \u3002<code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code> \u6570\u7ec4\u7684\u5b9e\u9645\u957f\u5ea6\u5219\u662f <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">len + free + 1<\/code> \u5b57\u8282\u3002\u5982\u679c\u4fee\u6539\u540e\u7684\u65b0\u503c<strong style=\"font-weight: bold; color: black;\">\u5927\u4e8e\u7b49\u4e8e 1MB<\/strong>\uff0c\u7a0b\u5e8f\u5219\u4f1a\u5206\u914d 1MB \u7684\u672a\u4f7f\u7528\u7a7a\u95f4\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u5982\u6b64\u4e00\u6765\uff0c\u5c31\u4e0d\u9700\u8981\u6bcf\u6b21\u589e\u52a0\u5b57\u7b26\u4e32\u957f\u5ea6\u65f6\u5fc5\u987b\u5bf9\u5185\u5b58\u91cd\u65b0\u5206\u914d\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 16px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">\u60f0\u6027\u7a7a\u95f4\u91ca\u653e<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h5>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u5f53 SDS \u4e2d\u7684\u5b57\u7b26\u4e32\u53d8\u77ed\u65f6\uff0c\u7a0b\u5e8f\u5e76\u4e0d\u662f\u76f4\u63a5\u8fdb\u884c\u5185\u5b58\u91cd\u5206\u914d\u56de\u6536\u591a\u4f59\u7684\u7a7a\u95f4\uff0c\u800c\u662f\u4f7f\u7528 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">free<\/code> \u8bb0\u5f55\u4e0b\u6765\u3002\u5982\u679c\u5c06\u6765\u518d\u53d8\u957f\u65f6\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u901a\u8fc7\u60f0\u6027\u7a7a\u95f4\u91ca\u653e\uff0c\u907f\u514d\u4e86\u7f29\u77ed\u5b57\u7b26\u4e32\u65f6\u4ea7\u751f\u7684\u5185\u5b58\u91cd\u5206\u914d\u64cd\u4f5c\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 20px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">3 \u4e8c\u8fdb\u5236\u5b89\u5168<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u7531\u4e8eC\u5b57\u7b26\u4e32\u7684\u7279\u6b8a\u6027\uff0c\u5728\u4e00\u4e9b\u573a\u666f\u4e2d\u4f1a\u51fa\u73b0\u95ee\u9898\u3002\u5982\uff0c\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u5b58\u5728\u591a\u4e2a\u7a7a\u5b57\u7b26\uff0c\u90a3\u4e48C\u5b57\u7b26\u4e32\u53ea\u80fd\u8bc6\u522b\u51fa\u7b2c\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e4b\u524d\u7684\u5185\u5bb9\u3002\u4e14C\u5b57\u7b26\u4e32\u53ea\u80fd\u4fdd\u5b58\u6587\u672c\u6570\u636e\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u800c SDS \u7684 API \u90fd\u662f\u4e8c\u8fdb\u5236\u5b89\u5168\u7684\uff0c\u6240\u6709\u7684 API \u90fd\u4f1a\u4ee5\u5904\u7406\u4e8c\u8fdb\u5236\u7684\u65b9\u5f0f\u6765\u5904\u7406 SDS \u5b58\u653e\u5728 <code style=\"font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #1e6bb8; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all;\">buf<\/code>  \u6570\u7ec4\u4e2d\u7684\u6570\u636e\uff0c\u4ee5\u4fdd\u8bc1\u6570\u636e\u5199\u5165\u524d\u4e0e\u8bfb\u53d6\u540e\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 20px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">4 \u517c\u5bb9\u90e8\u5206C\u5b57\u7b26\u4e32\u51fd\u6570<\/span><span class=\"suffix\" style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px; padding-top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: black;\">\u907f\u514d\u4e86\u91cd\u590d\u9020\u8f6e\u5b50\u7684\u95ee\u9898\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px;\"><span class=\"prefix\" style=\"display: none;\"><\/span><span class=\"content\">SDS API<\/span><span class=\"suffix\"><\/span><\/h2>\n<section class=\"table-container\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"overflow-x: auto;\">\n<table style=\"display: table; text-align: left;\">\n<thead>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<th style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; font-weight: bold; background-color: #f0f0f0; min-width: 85px;\">\u51fd\u6570<\/th>\n<th style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; font-weight: bold; background-color: #f0f0f0; min-width: 85px;\">\u4f5c\u7528<\/th>\n<th style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; font-weight: bold; background-color: #f0f0f0; min-width: 85px;\">\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"border: 0;\">\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsnew<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u7ed9\u5b9a C \u5b57\u7b26\u4e32\u7684 SDS<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsempty<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u521b\u5efa\u4e00\u4e2a\u4e0d\u5305\u542b\u4efb\u4f55\u5185\u5bb9\u7684\u7a7a SDS<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsfree<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u91ca\u653e\u7ed9\u5b9a\u7684 SDS<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdslen<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u8fd4\u56de SDS \u5df2\u4f7f\u7528\u7684\u7a7a\u95f4\u5b57\u8282\u6570<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsavail<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u8fd4\u56deSDS \u672a\u4f7f\u7528\u7684\u7a7a\u95f4\u5b57\u8282\u6570<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsdump<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u521b\u5efa\u4e00\u4e2a\u7ed9\u5b9a SDS \u7684\u526f\u672c<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsclear<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u6e05\u7a7a SDS \u4fdd\u5b58\u7684\u5b57\u7b26\u4e32\u5185\u5bb9<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdscat<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u5c06\u7ed9\u5b9a\u7684C\u5b57\u7b26\u4e32\u62fc\u63a5\u5230 SDS\u5b57\u7b26\u4e32\u672b\u5c3e<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdscatsds<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u5c06\u7ed9\u5b9a\u7684SDS\u5b57\u7b26\u4e32\u62fc\u63a5\u5230\u53e6\u4e00\u4e2aSDS\u5b57\u7b26\u4e32\u7684\u672b\u5c3e<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdscpy<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u5c06\u7ed9\u5b9a\u7684C\u5b57\u7b26\u4e32\u590d\u5236\u5230 SDS\u4e2d\uff0c\u5e76\u8986\u76d6SDS\u4e2d\u539f\u6709\u7684\u5b57\u7b26\u4e32<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsgrowzero<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u7528\u7a7a\u5b57\u7b26\u5c06SDS\u6269\u5c55\u81f3\u7ed9\u5b9a\u957f\u5ea6<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdsrange<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u4fdd\u7559SDS\u7ed9\u5b9a\u533a\u95f4\u5185\u7684\u6570\u636e<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: white;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdstrim<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u63a5\u53d7\u4e00\u4e2a SDS \u548c\u4e00\u4e2a C\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\uff0c\u4ece SDS \u4e2d\u79fb\u9664\u6240\u6709\u5728C\u5b57\u7b26\u4e32\u4e2d\u51fa\u73b0\u8fc7\u7684\u5b57\u7b26<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<tr style=\"border: 0; border-top: 1px solid #ccc; background-color: #F8F8F8;\">\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">sdscmp<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\">\u5bf9\u6bd4\u4e24\u4e2a SDS \u662f\u5426\u76f8\u540c<\/td>\n<td style=\"font-size: 16px; border: 1px solid #ccc; padding: 5px 10px; text-align: left; min-width: 85px;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb Redis \u4e2d\u81ea\u5b9a\u4e49\u7684\u5b57\u7b26\u4e32\u7ed3\u6784\u3002 \u5b57\u7b26\u4e32\u662f Redis \u4e2d\u6700\u5e38\u7528\u7684\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5728 Redis \u4e2d\u4e13\u95e8 &hellip; <a href=\"https:\/\/www.changxuan.top\/?p=1109\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Redis\u4e2d\u7684\u5b57\u7b26\u4e32<\/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":[37],"tags":[88],"class_list":["post-1109","post","type-post","status-publish","format-standard","hentry","category-tech","tag-redis"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Redis\u4e2d\u7684\u5b57\u7b26\u4e32 - \u5e38\u8f69<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.changxuan.top\/?p=1109\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redis\u4e2d\u7684\u5b57\u7b26\u4e32 - \u5e38\u8f69\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u4ecb Redis \u4e2d\u81ea\u5b9a\u4e49\u7684\u5b57\u7b26\u4e32\u7ed3\u6784\u3002 \u5b57\u7b26\u4e32\u662f Redis \u4e2d\u6700\u5e38\u7528\u7684\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5728 Redis \u4e2d\u4e13\u95e8 &hellip; \u7ee7\u7eed\u9605\u8bfbRedis\u4e2d\u7684\u5b57\u7b26\u4e32\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.changxuan.top\/?p=1109\" \/>\n<meta property=\"og:site_name\" content=\"\u5e38\u8f69\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-11T14:44:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-29T04:46:54+00:00\" \/>\n<meta name=\"author\" content=\"\u5e38\u8f69\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5e38\u8f69\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109\"},\"author\":{\"name\":\"\u5e38\u8f69\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\"},\"headline\":\"Redis\u4e2d\u7684\u5b57\u7b26\u4e32\",\"datePublished\":\"2020-10-11T14:44:47+00:00\",\"dateModified\":\"2020-11-29T04:46:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109\"},\"wordCount\":73,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\"},\"keywords\":[\"Redis\"],\"articleSection\":[\"\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.changxuan.top\\\/?p=1109#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109\",\"url\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109\",\"name\":\"Redis\u4e2d\u7684\u5b57\u7b26\u4e32 - \u5e38\u8f69\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#website\"},\"datePublished\":\"2020-10-11T14:44:47+00:00\",\"dateModified\":\"2020-11-29T04:46:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.changxuan.top\\\/?p=1109\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=1109#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.changxuan.top\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redis\u4e2d\u7684\u5b57\u7b26\u4e32\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#website\",\"url\":\"https:\\\/\\\/www.changxuan.top\\\/\",\"name\":\"\u5e38\u8f69\",\"description\":\"\u95fb\u9053\u6709\u5148\u540e\uff0c\u672f\u4e1a\u6709\u4e13\u653b-\u4e00\u4e8c\u4e09\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.changxuan.top\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\",\"name\":\"\u5e38\u8f69\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\",\"url\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\",\"contentUrl\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\",\"width\":960,\"height\":960,\"caption\":\"\u5e38\u8f69\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\"},\"description\":\"\u603b\u8981\u505a\u70b9\u4ec0\u4e48\u5427\uff01\",\"sameAs\":[\"https:\\\/\\\/www.changxuan.top\"],\"url\":\"https:\\\/\\\/www.changxuan.top\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redis\u4e2d\u7684\u5b57\u7b26\u4e32 - \u5e38\u8f69","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.changxuan.top\/?p=1109","og_locale":"zh_CN","og_type":"article","og_title":"Redis\u4e2d\u7684\u5b57\u7b26\u4e32 - \u5e38\u8f69","og_description":"\u7b80\u4ecb Redis \u4e2d\u81ea\u5b9a\u4e49\u7684\u5b57\u7b26\u4e32\u7ed3\u6784\u3002 \u5b57\u7b26\u4e32\u662f Redis \u4e2d\u6700\u5e38\u7528\u7684\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5728 Redis \u4e2d\u4e13\u95e8 &hellip; \u7ee7\u7eed\u9605\u8bfbRedis\u4e2d\u7684\u5b57\u7b26\u4e32","og_url":"https:\/\/www.changxuan.top\/?p=1109","og_site_name":"\u5e38\u8f69","article_published_time":"2020-10-11T14:44:47+00:00","article_modified_time":"2020-11-29T04:46:54+00:00","author":"\u5e38\u8f69","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5e38\u8f69","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.changxuan.top\/?p=1109#article","isPartOf":{"@id":"https:\/\/www.changxuan.top\/?p=1109"},"author":{"name":"\u5e38\u8f69","@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd"},"headline":"Redis\u4e2d\u7684\u5b57\u7b26\u4e32","datePublished":"2020-10-11T14:44:47+00:00","dateModified":"2020-11-29T04:46:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.changxuan.top\/?p=1109"},"wordCount":73,"commentCount":0,"publisher":{"@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd"},"keywords":["Redis"],"articleSection":["\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.changxuan.top\/?p=1109#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.changxuan.top\/?p=1109","url":"https:\/\/www.changxuan.top\/?p=1109","name":"Redis\u4e2d\u7684\u5b57\u7b26\u4e32 - \u5e38\u8f69","isPartOf":{"@id":"https:\/\/www.changxuan.top\/#website"},"datePublished":"2020-10-11T14:44:47+00:00","dateModified":"2020-11-29T04:46:54+00:00","breadcrumb":{"@id":"https:\/\/www.changxuan.top\/?p=1109#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.changxuan.top\/?p=1109"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.changxuan.top\/?p=1109#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.changxuan.top\/"},{"@type":"ListItem","position":2,"name":"Redis\u4e2d\u7684\u5b57\u7b26\u4e32"}]},{"@type":"WebSite","@id":"https:\/\/www.changxuan.top\/#website","url":"https:\/\/www.changxuan.top\/","name":"\u5e38\u8f69","description":"\u95fb\u9053\u6709\u5148\u540e\uff0c\u672f\u4e1a\u6709\u4e13\u653b-\u4e00\u4e8c\u4e09","publisher":{"@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.changxuan.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd","name":"\u5e38\u8f69","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg","url":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg","contentUrl":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg","width":960,"height":960,"caption":"\u5e38\u8f69"},"logo":{"@id":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg"},"description":"\u603b\u8981\u505a\u70b9\u4ec0\u4e48\u5427\uff01","sameAs":["https:\/\/www.changxuan.top"],"url":"https:\/\/www.changxuan.top\/?author=1"}]}},"views":1348,"_links":{"self":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts\/1109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1109"}],"version-history":[{"count":5,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts\/1109\/revisions"}],"predecessor-version":[{"id":1199,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts\/1109\/revisions\/1199"}],"wp:attachment":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}