{"id":92,"date":"2026-09-01T01:24:15","date_gmt":"2026-08-31T17:24:15","guid":{"rendered":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/01\/interview-mysql-redis-cache\/"},"modified":"2026-09-06T01:30:10","modified_gmt":"2026-09-05T17:30:10","slug":"interview-mysql-redis-cache","status":"publish","type":"post","link":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/01\/interview-mysql-redis-cache\/","title":{"rendered":"MySQL \u4e0e Redis \u9762\u8bd5\u653b\u575a\uff1a\u7d22\u5f15\u3001\u9501\u3001\u7f13\u5b58\u4e00\u81f4\u6027"},"content":{"rendered":"<div style=\"font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft YaHei\",sans-serif;font-size:16.5px;line-height:1.9;color:#35435c;letter-spacing:.2px\">\n<div style=\"background:linear-gradient(135deg,#f5f9ff,#eef5ff);border:1px solid #dce8f8;border-left:4px solid #d98324;border-radius:12px;padding:16px 20px;margin:0 0 24px;font-size:14.5px;color:#3d5570;line-height:2\"><span style=\"display:inline-block;background:#d98324;color:#fff;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:6px;margin-right:12px;letter-spacing:1px;vertical-align:1px\">\u5173\u952e\u8bcd<\/span>MySQL\u7d22\u5f15\u3001B+Tree\u3001\u95f4\u9699\u9501\u3001\u9694\u79bb\u7ea7\u522b\u3001Redis\u3001\u7f13\u5b58\u4e00\u81f4\u6027\u3001\u7f13\u5b58\u7a7f\u900f<\/div>\n<div style=\"background:#fafbfd;border:1px solid #e8edf5;border-radius:12px;padding:18px 22px;margin:0 0 30px\">\n<div style=\"font-size:13.5px;font-weight:700;color:#8a99ae;letter-spacing:2px;margin-bottom:12px\">\u76ee\u5f55<\/div>\n<ol style=\"margin:0;padding-left:20px\">\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-1\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e00\u3001\u7d22\u5f15\uff1a\u4ece\u6570\u636e\u7ed3\u6784\u95ee\u5230\u4f18\u5316<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-2\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e8c\u3001\u9501\u4e0e\u4e8b\u52a1\u9694\u79bb<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-3\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e09\u3001Redis\uff1a\u6570\u636e\u7ed3\u6784\u4e0e\u8fc7\u671f<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-4\" style=\"color:#42546e;text-decoration:none;border:none\">\u56db\u3001\u7f13\u5b58\u4e00\u81f4\u6027\uff1a\u6838\u5fc3\u96be\u9898<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-5\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e94\u3001\u5c0f\u7ed3<\/a><\/li>\n<\/ol>\n<\/div>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><span style=\"font-size:17px;color:#1e2f47\">MySQL \u4e0e Redis \u51e0\u4e4e\u662f\u540e\u7aef\u9762\u8bd5\u7684\u5fc5\u8003\u7ec4\u5408\uff1a\u524d\u8005\u8003\u5bdf\u4f60\u5bf9<strong style=\"color:#0f1c2e;font-weight:600\">\u5b58\u50a8\u5f15\u64ce\u4e0e\u5e76\u53d1\u63a7\u5236<\/strong>\u7684\u7406\u89e3\uff0c\u540e\u8005\u8003\u5bdf\u4f60\u5bf9<strong style=\"color:#0f1c2e;font-weight:600\">\u7f13\u5b58\u8bbe\u8ba1\u4e0e\u4e00\u81f4\u6027<\/strong>\u7684\u628a\u63e1\u3002\u4e24\u8005\u7ed3\u5408\u7684\u90a3\u9053&#8221;\u7f13\u5b58\u4e00\u81f4\u6027&#8221;\u9898\uff0c\u66f4\u662f\u533a\u5206\u521d\u4e2d\u9ad8\u7ea7\u7684\u5206\u6c34\u5cad\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u672c\u6587\u6309\u9ad8\u9891\u771f\u9898\u7ec4\u7ec7\uff0c\u6bcf\u9898\u7ed9\u51fa\u6807\u51c6\u7b54\u6cd5\u4e0e\u8ffd\u95ee\u9677\u9631\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #d98324;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-1\">\u4e00\u3001\u7d22\u5f15\uff1a\u4ece\u6570\u636e\u7ed3\u6784\u95ee\u5230\u4f18\u5316<\/h2>\n<figure style=\"margin:30px 0;text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"900\" src=\"https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-mysql-redis-cache-fig-1.png\" alt=\"B+Tree \u7684\u7ed3\u6784\u4e0e\u4f18\u52bf\" class=\"wp-image-157\" style=\"max-width:100%;height:auto;border-radius:12px;border:1px solid #e6ecf4;box-shadow:0 8px 24px rgba(15,30,60,.07)\" srcset=\"https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-mysql-redis-cache-fig-1.png 1200w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-mysql-redis-cache-fig-1-300x225.png 300w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-mysql-redis-cache-fig-1-1024x768.png 1024w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-mysql-redis-cache-fig-1-768x576.png 768w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-mysql-redis-cache-fig-1-800x600.png 800w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption style=\"margin-top:12px;font-size:13.5px;color:#7b8aa0;text-align:center;line-height:1.75\">B+Tree \u7ed3\u6784\uff1a\u975e\u53f6\u5b50\u8282\u70b9\u53ea\u5b58\u952e\u503c\uff0c\u53f6\u5b50\u8282\u70b9\u5b58\u6570\u636e\u5e76\u94fe\u8868\u76f8\u8fde<\/figcaption><\/figure>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q1\uff1a\u4e3a\u4ec0\u4e48 MySQL \u7528 B+Tree \u800c\u4e0d\u662f BTree \u6216\u54c8\u5e0c\uff1f<\/strong><\/p>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u5bf9\u6bd4\u54c8\u5e0c<\/strong>\uff1a\u54c8\u5e0c\u53ea\u652f\u6301\u7b49\u503c\u67e5\u8be2\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u4e0d\u652f\u6301\u8303\u56f4\u67e5\u8be2\u4e0e\u6392\u5e8f<\/strong>\uff0c\u800c\u4e1a\u52a1\u91cc <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">BETWEEN<\/code>\u3001<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">ORDER BY<\/code> \u6781\u5176\u5e38\u89c1\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u5bf9\u6bd4 BTree<\/strong>\uff1aB+Tree \u7684<strong style=\"color:#0f1c2e;font-weight:600\">\u975e\u53f6\u5b50\u8282\u70b9\u53ea\u5b58\u952e\u503c\u4e0d\u5b58\u6570\u636e<\/strong>\uff0c\u56e0\u6b64\u5355\u4e2a\u8282\u70b9\u80fd\u5bb9\u7eb3\u66f4\u591a\u952e\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u6811\u9ad8\u66f4\u4f4e\u3001\u78c1\u76d8 I\/O \u6b21\u6570\u66f4\u5c11<\/strong>\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">B+Tree \u7684\u53f6\u5b50\u8282\u70b9\u7528\u94fe\u8868\u76f8\u8fde<\/strong>\uff0c\u8303\u56f4\u626b\u63cf\u53ea\u9700\u987a\u5e8f\u904d\u5386\u53f6\u5b50\u8282\u70b9\uff0c\u6548\u7387\u6781\u9ad8\u3002<\/li>\n<\/ul>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q2\uff1a\u805a\u7c07\u7d22\u5f15\u548c\u4e8c\u7ea7\u7d22\u5f15\u7684\u533a\u522b\uff1f\u4ec0\u4e48\u662f\u56de\u8868\uff1f<\/strong><br \/>\nInnoDB \u4e2d\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u805a\u7c07\u7d22\u5f15\u7684\u53f6\u5b50\u8282\u70b9\u5b58\u6574\u884c\u6570\u636e<\/strong>\uff08\u6309\u4e3b\u952e\u7ec4\u7ec7\uff09\uff1b<strong style=\"color:#0f1c2e;font-weight:600\">\u4e8c\u7ea7\u7d22\u5f15\u7684\u53f6\u5b50\u8282\u70b9\u5b58\u4e3b\u952e\u503c<\/strong>\u3002\u901a\u8fc7\u4e8c\u7ea7\u7d22\u5f15\u67e5\u5230\u4e3b\u952e\u540e\uff0c\u518d\u5230\u805a\u7c07\u7d22\u5f15\u53d6\u5b8c\u6574\u884c\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u53eb<strong style=\"color:#0f1c2e;font-weight:600\">\u56de\u8868<\/strong>\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u8ffd\u95ee\uff1a<\/strong>&#8220;\u600e\u4e48\u907f\u514d\u56de\u8868\uff1f&#8221; \u2192 <strong style=\"color:#0f1c2e;font-weight:600\">\u8986\u76d6\u7d22\u5f15<\/strong>\uff1a\u8ba9\u67e5\u8be2\u7684\u5b57\u6bb5\u90fd\u5305\u542b\u5728\u7d22\u5f15\u91cc\uff0c<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">EXPLAIN<\/code> \u4e2d\u4f1a\u51fa\u73b0 <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">Using index<\/code>\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q3\uff1a\u6700\u5de6\u524d\u7f00\u539f\u5219\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\n\u5bf9\u8054\u5408\u7d22\u5f15 <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">(a, b, c)<\/code>\uff0c\u67e5\u8be2\u6761\u4ef6\u5fc5\u987b\u4ece<strong style=\"color:#0f1c2e;font-weight:600\">\u6700\u5de6\u5217\u5f00\u59cb\u8fde\u7eed\u5339\u914d<\/strong>\u624d\u80fd\u7528\u4e0a\u7d22\u5f15\u3002<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">a=1 AND b=2<\/code> \u53ef\u7528\uff1b<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">b=2<\/code> \u4e0d\u53ef\u7528\uff1b<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">a=1 AND c=3<\/code> \u53ea\u80fd\u7528\u5230 <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">a<\/code> \u90e8\u5206\u3002\u6ce8\u610f\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u8303\u56f4\u67e5\u8be2\u4e4b\u540e\u7684\u5217\u65e0\u6cd5\u7ee7\u7eed\u8d70\u7d22\u5f15<\/strong>\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q4\uff1a\u54ea\u4e9b\u60c5\u51b5\u7d22\u5f15\u4f1a\u5931\u6548\uff1f<\/strong><\/p>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\">\u5bf9\u7d22\u5f15\u5217\u505a<strong style=\"color:#0f1c2e;font-weight:600\">\u51fd\u6570\u8fd0\u7b97\u6216\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362<\/strong>\uff08\u5982 <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">WHERE YEAR(created_at)=2026<\/code>\u3001\u5b57\u7b26\u4e32\u5217\u4f20\u6570\u5b57\uff09\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\">\u4f7f\u7528 <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">LIKE '%xxx'<\/code> \u524d\u7f6e\u901a\u914d\u7b26\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\">\u8fdd\u53cd\u6700\u5de6\u524d\u7f00\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">OR<\/code> \u8fde\u63a5\u7684\u6761\u4ef6\u4e2d\u5b58\u5728\u672a\u5efa\u7d22\u5f15\u7684\u5217\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\">\u4f18\u5316\u5668\u5224\u65ad<strong style=\"color:#0f1c2e;font-weight:600\">\u56de\u8868\u4ee3\u4ef7\u8fc7\u9ad8<\/strong>\uff08\u5982\u547d\u4e2d\u884c\u6570\u5360\u6bd4\u592a\u5927\uff09\u65f6\u9009\u62e9\u5168\u8868\u626b\u63cf\u3002<\/li>\n<\/ul>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #d98324;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-2\">\u4e8c\u3001\u9501\u4e0e\u4e8b\u52a1\u9694\u79bb<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q5\uff1aInnoDB \u6709\u54ea\u51e0\u79cd\u884c\u9501\uff1f<\/strong><\/p>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u8bb0\u5f55\u9501\uff08Record Lock\uff09<\/strong>\uff1a\u9501\u5355\u6761\u7d22\u5f15\u8bb0\u5f55\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u95f4\u9699\u9501\uff08Gap Lock\uff09<\/strong>\uff1a\u9501\u7d22\u5f15\u8bb0\u5f55\u4e4b\u95f4\u7684\u95f4\u9699\uff0c\u9632\u6b62\u63d2\u5165\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u4e34\u952e\u9501\uff08Next-Key Lock\uff09<\/strong>\uff1a\u8bb0\u5f55\u9501 + \u95f4\u9699\u9501\uff0c\u9501&#8221;\u5de6\u5f00\u53f3\u95ed&#8221;\u533a\u95f4\uff0c\u662f InnoDB \u9ed8\u8ba4\u884c\u9501\u7b97\u6cd5\u3002<\/li>\n<\/ul>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q6\uff1a\u4e3a\u4ec0\u4e48\u6709\u95f4\u9699\u9501\uff1f<\/strong><br \/>\n\u4e3a\u4e86\u89e3\u51b3<strong style=\"color:#0f1c2e;font-weight:600\">\u5e7b\u8bfb<\/strong>\u3002\u5728\u53ef\u91cd\u590d\u8bfb\uff08RR\uff09\u9694\u79bb\u7ea7\u522b\u4e0b\uff0c\u95f4\u9699\u9501\u963b\u6b62\u5728\u8303\u56f4\u5185\u63d2\u5165\u65b0\u8bb0\u5f55\uff0c\u4ece\u800c\u4fdd\u8bc1\u540c\u4e00\u4e8b\u52a1\u5185\u4e24\u6b21\u8303\u56f4\u67e5\u8be2\u7ed3\u679c\u4e00\u81f4\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q7\uff1aRR \u548c RC \u7684\u533a\u522b\uff1f\u751f\u4ea7\u9009\u54ea\u4e2a\uff1f<\/strong><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;font-size:15px;border:1px solid #e3eaf3;border-radius:10px;overflow:hidden\">\n<thead>\n<tr>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u9694\u79bb\u7ea7\u522b<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u5e7b\u8bfb<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u95f4\u9699\u9501<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u5e76\u53d1\u5ea6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">RC\uff08\u8bfb\u5df2\u63d0\u4ea4\uff09<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5b58\u5728<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u57fa\u672c\u4e0d\u4f7f\u7528<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u9ad8\uff0c\u9501\u51b2\u7a81\u5c11<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">RR\uff08\u53ef\u91cd\u590d\u8bfb\uff09<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u9760 MVCC + \u95f4\u9699\u9501\u907f\u514d<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u4f7f\u7528<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u8f83\u4f4e\uff0c\u6b7b\u9501\u6982\u7387\u9ad8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4e92\u8054\u7f51\u4e1a\u52a1\u5e38\u9009 <strong style=\"color:#0f1c2e;font-weight:600\">RC<\/strong>\uff1a\u5e76\u53d1\u5ea6\u66f4\u9ad8\u3001\u6b7b\u9501\u66f4\u5c11\uff0c\u5e7b\u8bfb\u95ee\u9898\u901a\u8fc7\u4e1a\u52a1\u8bbe\u8ba1\u89c4\u907f\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q8\uff1a\u6b7b\u9501\u600e\u4e48\u6392\u67e5\u4e0e\u907f\u514d\uff1f<\/strong><br \/>\n\u6392\u67e5\u7528 <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">SHOW ENGINE INNODB STATUS<\/code> \u67e5\u770b\u6700\u8fd1\u6b7b\u9501\u65e5\u5fd7\uff1b\u907f\u514d\u624b\u6bb5\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u56fa\u5b9a\u52a0\u9501\u987a\u5e8f\u3001\u7f29\u77ed\u4e8b\u52a1\u3001\u51cf\u5c11\u9501\u5b9a\u8303\u56f4\u3001\u5408\u7406\u8bbe\u8ba1\u7d22\u5f15<\/strong>\uff08\u6ca1\u7d22\u5f15\u4f1a\u5347\u7ea7\u4e3a\u8868\u9501\uff09\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #d98324;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-3\">\u4e09\u3001Redis\uff1a\u6570\u636e\u7ed3\u6784\u4e0e\u8fc7\u671f<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q9\uff1aRedis \u4e3a\u4ec0\u4e48\u5feb\uff1f<\/strong><br \/>\n\u56db\u70b9\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u2460 \u7eaf\u5185\u5b58\u64cd\u4f5c\uff1b\u2461 \u5355\u7ebf\u7a0b\u6a21\u578b\u907f\u514d\u9501\u4e0e\u4e0a\u4e0b\u6587\u5207\u6362\uff08\u6307\u547d\u4ee4\u6267\u884c\u4e3b\u7ebf\u7a0b\uff09\uff1b\u2462 I\/O \u591a\u8def\u590d\u7528\uff1b\u2463 \u9ad8\u6548\u6570\u636e\u7ed3\u6784<\/strong>\u3002\u6ce8\u610f\u8865\u5145\uff1aRedis \u540e\u671f\u7248\u672c\u5f15\u5165\u4e86<strong style=\"color:#0f1c2e;font-weight:600\">\u591a\u7ebf\u7a0b\u5904\u7406\u7f51\u7edc I\/O<\/strong>\uff0c\u4f46\u547d\u4ee4\u6267\u884c\u4ecd\u662f\u5355\u7ebf\u7a0b\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q10\uff1a\u7f13\u5b58\u7a7f\u900f\u3001\u51fb\u7a7f\u3001\u96ea\u5d29\u5206\u522b\u662f\u4ec0\u4e48\uff1f\u600e\u4e48\u89e3\u51b3\uff1f<\/strong><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;font-size:15px;border:1px solid #e3eaf3;border-radius:10px;overflow:hidden\">\n<thead>\n<tr>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u95ee\u9898<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u73b0\u8c61<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u89e3\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u7a7f\u900f<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u67e5\u4e0d\u5b58\u5728\u7684\u6570\u636e\uff0c\u7ed5\u8fc7\u7f13\u5b58\u76f4\u51fb DB<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5e03\u9686\u8fc7\u6ee4\u5668\u3001\u7f13\u5b58\u7a7a\u503c\uff08\u77ed TTL\uff09\u3001\u53c2\u6570\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u51fb\u7a7f<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5355\u4e2a\u70ed\u70b9 key \u8fc7\u671f\u77ac\u95f4\u5927\u91cf\u8bf7\u6c42\u6253\u7a7f<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u4e92\u65a5\u9501\u91cd\u5efa\u3001\u903b\u8f91\u8fc7\u671f\uff08\u6c38\u4e0d\u8fc7\u671f + \u540e\u53f0\u5237\u65b0\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u96ea\u5d29<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5927\u91cf key \u540c\u65f6\u8fc7\u671f<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">TTL \u52a0\u968f\u673a\u6296\u52a8\u3001\u591a\u7ea7\u7f13\u5b58\u3001\u9650\u6d41\u964d\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q11\uff1a\u5185\u5b58\u6ee1\u4e86\u600e\u4e48\u529e\uff1f\u6dd8\u6c70\u7b56\u7565\u600e\u4e48\u9009\uff1f<\/strong><br \/>\n\u5e38\u7528\uff1a<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">allkeys-lru<\/code>\uff08\u6240\u6709 key \u4e2d\u6dd8\u6c70\u6700\u8fd1\u6700\u5c11\u7528\uff09\u3001<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">volatile-lru<\/code>\uff08\u53ea\u5728\u8bbe\u4e86\u8fc7\u671f\u65f6\u95f4\u7684 key \u4e2d\u6dd8\u6c70\uff09\u3001<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">allkeys-lfu<\/code>\uff08\u6dd8\u6c70\u6700\u4e0d\u7ecf\u5e38\u4f7f\u7528\uff0c\u9002\u5408\u6709\u660e\u663e\u70ed\u70b9\u4e14\u5e0c\u671b\u4fdd\u7559\u9ad8\u9891\u8bbf\u95ee\u6570\u636e\u7684\u573a\u666f\uff09\u3002\u82e5\u6570\u636e<strong style=\"color:#0f1c2e;font-weight:600\">\u4e0d\u5141\u8bb8\u4e22\u5931<\/strong>\uff0c\u5e94\u8bbe\u4e3a <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">noeviction<\/code> \u5e76\u914d\u5408\u76d1\u63a7\u6269\u5bb9\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #d98324;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-4\">\u56db\u3001\u7f13\u5b58\u4e00\u81f4\u6027\uff1a\u6838\u5fc3\u96be\u9898<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q12\uff1a\u5148\u66f4\u65b0\u6570\u636e\u5e93\u8fd8\u662f\u5148\u5220\u7f13\u5b58\uff1f<\/strong><br \/>\n\u63a8\u8350 <strong style=\"color:#0f1c2e;font-weight:600\">\u5148\u66f4\u65b0\u6570\u636e\u5e93\uff0c\u518d\u5220\u9664\u7f13\u5b58<\/strong>\uff08Cache-Aside\uff09\u3002\u539f\u56e0\uff1a\u5982\u679c\u5148\u5220\u7f13\u5b58\u518d\u66f4\u65b0\u6570\u636e\u5e93\uff0c\u5728\u5220\u9664\u540e\u3001\u66f4\u65b0\u5b8c\u6210\u524d\u7684\u5e76\u53d1\u8bfb\u4f1a\u628a<strong style=\"color:#0f1c2e;font-weight:600\">\u65e7\u503c\u91cd\u65b0\u5199\u56de\u7f13\u5b58<\/strong>\uff0c\u5bfc\u81f4\u957f\u671f\u4e0d\u4e00\u81f4\u2014\u2014\u8fd9\u4e2a\u6982\u7387\u8fdc\u9ad8\u4e8e\u53e6\u4e00\u79cd\u987a\u5e8f\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q13\uff1a\u5220\u7f13\u5b58\u5931\u8d25\u4e86\u600e\u4e48\u529e\uff1f<\/strong><br \/>\n\u4e09\u5c42\u4fdd\u969c\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u2460 \u91cd\u8bd5\u673a\u5236\uff1b\u2461 \u8ba2\u9605\u6570\u636e\u5e93 binlog \u5f02\u6b65\u5220\u9664\uff08\u5982 Canal \u7c7b\u65b9\u6848\uff09\uff1b\u2462 \u8bbe\u7f6e\u8f83\u77ed\u7684\u8fc7\u671f\u65f6\u95f4\u515c\u5e95<\/strong>\u3002\u7b2c\u4e8c\u70b9\u662f\u751f\u4ea7\u73af\u5883\u7684\u5e38\u89c1\u505a\u6cd5\uff1a<\/p>\n<pre style=\"background:#0f1a2b;color:#dbe6f5;border-radius:12px;padding:18px 20px;overflow-x:auto;font-size:13.6px;line-height:1.78;margin:22px 0;border:1px solid #1e2c42;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace\"><code style=\"background:none;border:none;color:inherit;padding:0;font-size:inherit;font-family:inherit\">\/\/ Cache-Aside \u6807\u51c6\u5199\u6cd5\uff1a\u66f4\u5e93 + \u5220\u7f13\u5b58\uff0c\u5931\u8d25\u8fdb\u91cd\u8bd5\u961f\u5217\npublic void updateItem(Item item) {\n    itemMapper.update(item);                       \/\/ 1. \u5148\u66f4\u5e93\n    boolean ok = redis.delete(key(item.getId()));  \/\/ 2. \u518d\u5220\u7f13\u5b58\n    if (!ok) {\n        retryQueue.offer(new CacheEvictTask(item.getId(),\n            System.currentTimeMillis() + backoff()));  \/\/ 3. \u5931\u8d25\u91cd\u8bd5\n    }\n}\n\/\/ \u515c\u5e95\uff1aCanal \u8ba2\u9605 binlog \u7684 row_change \u4e8b\u4ef6\u518d\u5220\u4e00\u6b21\uff0c\n\/\/ \u5373\u4f7f\u5e94\u7528\u5c42\u4e24\u6b21\u90fd\u5931\u8d25\uff0c\u6700\u7ec8\u4e5f\u4f1a\u88ab binlog \u9a71\u52a8\u7684\u5220\u9664\u4fee\u6b63<\/code><\/pre>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q14\uff1a\u80fd\u505a\u5230\u5f3a\u4e00\u81f4\u5417\uff1f<\/strong><br \/>\n\u80fd\uff0c\u4f46\u4ee3\u4ef7\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u52a0\u9501\u4e32\u884c\u5316<\/strong>\uff08\u8bfb\u65f6\u52a0\u8bfb\u9501\u3001\u5199\u65f6\u52a0\u5199\u9501\uff09\uff0c\u541e\u5410\u4f1a\u5927\u5e45\u4e0b\u964d\u3002\u7edd\u5927\u591a\u6570\u4e1a\u52a1\u7684\u6b63\u786e\u9009\u62e9\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u6700\u7ec8\u4e00\u81f4 + \u8fc7\u671f\u65f6\u95f4 + \u76d1\u63a7\u5bf9\u8d26<\/strong>\u3002<\/p>\n<blockquote style=\"margin:24px 0;padding:16px 22px;background:#f7fafd;border-left:4px solid #d98324;border-radius:0 10px 10px 0;color:#4a5b73;font-size:15.6px;line-height:1.88\">\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u52a0\u5206\u7b54\u6cd5\uff1a<\/strong>\u4e3b\u52a8\u8bf4\u660e&#8221;\u7f13\u5b58\u7684\u4f5c\u7528\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u63d0\u5347\u8bfb\u6027\u80fd<\/strong>\uff0c\u4e0d\u5e94\u627f\u62c5\u5f3a\u4e00\u81f4\u804c\u8d23\u3002\u5982\u679c\u4e1a\u52a1\u8981\u6c42\u5f3a\u4e00\u81f4\uff0c\u5e94\u8be5\u8003\u8651\u8bfb\u5199\u5206\u79bb\u5230\u4e3b\u5e93\uff0c\u800c\u4e0d\u662f\u7ed9\u7f13\u5b58\u52a0\u590d\u6742\u7684\u540c\u6b65\u903b\u8f91\u3002&#8221;<\/p>\n<\/blockquote>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #d98324;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-5\">\u4e94\u3001\u5c0f\u7ed3<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">MySQL \u90e8\u5206\u7684\u7b54\u9898\u4e3b\u7ebf\u662f <strong style=\"color:#0f1c2e;font-weight:600\">B+Tree \u2192 \u7d22\u5f15\u4f18\u5316 \u2192 \u9501\u4e0e\u9694\u79bb\u7ea7\u522b<\/strong>\uff1bRedis \u90e8\u5206\u662f <strong style=\"color:#0f1c2e;font-weight:600\">\u6570\u636e\u7ed3\u6784 \u2192 \u8fc7\u671f\u4e0e\u6dd8\u6c70 \u2192 \u4e09\u5927\u7f13\u5b58\u95ee\u9898 \u2192 \u4e00\u81f4\u6027<\/strong>\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u51c6\u5907\u65f6\u6700\u6709\u6548\u7684\u65b9\u6cd5\u662f\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u628a\u6bcf\u4e2a\u7ed3\u8bba\u90fd\u7528 EXPLAIN \u6216 Redis \u547d\u4ee4\u5b9e\u9645\u9a8c\u8bc1\u4e00\u904d<\/strong>\u3002\u9762\u8bd5\u65f6\u80fd\u8bf4\u51fa&#8221;\u6211\u7528 EXPLAIN \u770b\u8fc7\uff0c\u8fd9\u4e2a\u67e5\u8be2\u6ca1\u8d70\u7d22\u5f15\u662f\u56e0\u4e3a\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362&#8221;\uff0c\u6bd4\u80cc\u8bf5\u5341\u6761\u89c4\u5219\u66f4\u6709\u8bf4\u670d\u529b\u3002<\/p>\n<hr style=\"border:none;border-top:1px solid #eaeef4;margin:34px 0\">\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><em style=\"color:#5a6b85;font-style:normal;background:#d983241f;padding:1px 4px;border-radius:4px\">\u7248\u672c\u53c2\u8003\uff1aMySQL LTS \u7248\u672c\u4fe1\u606f\u89c1 <a href=\"https:\/\/endoflife.date\/api\/mysql.json\" target=\"_blank\" rel=\"noopener\" style=\"color:#d98324;text-decoration:none;border-bottom:1px solid #d9832466;transition:opacity .15s\">endoflife.date<\/a>\uff0cRedis \u7248\u672c\u89c1 <a href=\"https:\/\/endoflife.date\/api\/redis.json\" target=\"_blank\" rel=\"noopener\" style=\"color:#d98324;text-decoration:none;border-bottom:1px solid #d9832466;transition:opacity .15s\">endoflife.date<\/a>\uff1b\u91c7\u96c6\u4e8e 2026 \u5e74 9 \u6708 1 \u65e5\u3002\u5b9e\u73b0\u7ec6\u8282\u8bf7\u4ee5 <a href=\"https:\/\/dev.mysql.com\/doc\/\" target=\"_blank\" rel=\"noopener\" style=\"color:#d98324;text-decoration:none;border-bottom:1px solid #d9832466;transition:opacity .15s\">MySQL \u5b98\u65b9\u6587\u6863<\/a> \u4e0e <a href=\"https:\/\/redis.io\/docs\/latest\/\" target=\"_blank\" rel=\"noopener\" style=\"color:#d98324;text-decoration:none;border-bottom:1px solid #d9832466;transition:opacity .15s\">Redis \u5b98\u65b9\u6587\u6863<\/a> \u4e3a\u51c6\u3002<\/em><\/p>\n<div style=\"margin:42px 0 0;padding:22px 0 0;border-top:1px solid #eaeef4\">\n<div style=\"font-size:13px;color:#93a1b5;letter-spacing:1px;margin-bottom:12px\">\u6807\u7b7e<\/div>\n<p><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#MySQL<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#Redis<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u540e\u7aef\u9762\u8bd5\u9898<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u6570\u636e\u5e93<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u540e\u7aef\u9762\u8bd5\u5fc5\u8003\u7ec4\u5408\uff1aMySQL \u7684 B+Tree \u7d22\u5f15\u3001\u8986\u76d6\u7d22\u5f15\u4e0e\u56de\u8868\u3001\u6700\u5de6\u524d\u7f00\u3001\u9501\u4e0e\u9694\u79bb\u7ea7\u522b\uff1bRedis \u7684\u4e09\u5927\u7f13\u5b58\u95ee\u9898\u4e0e\u5185\u5b58\u6dd8\u6c70\u7b56\u7565\uff0c\u4ee5\u53ca\u6700\u96be\u7b54\u7684\u7f13\u5b58\u4e00\u81f4\u6027\u56db\u95ee\u3002<\/p>\n","protected":false},"author":1,"featured_media":156,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,11],"tags":[71,72,69,73],"class_list":["post-92","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backend-question-bank","category-question-bank","tag-mysql","tag-redis","tag-69","tag-73"],"_links":{"self":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":2,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":330,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/92\/revisions\/330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media\/156"}],"wp:attachment":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}