{"id":36085,"date":"2025-05-07T15:52:08","date_gmt":"2025-05-07T07:52:08","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36085.html"},"modified":"2025-05-07T15:52:08","modified_gmt":"2025-05-07T07:52:08","slug":"%e7%bc%93%e5%ad%98%e4%bd%bf%e7%94%a8%e7%9a%84%e5%85%b7%e4%bd%93%e5%9c%ba%e6%99%af%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f%e7%bc%93%e5%ad%98%e7%9a%84%e4%b8%80%e8%87%b4%e6%80%a7%e9%97%ae%e9%a2%98%e5%a6%82","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36085.html","title":{"rendered":"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"<hr \/>\n<h4>\u7f13\u5b58\u4f7f\u7528\u573a\u666f\u3001\u4e00\u81f4\u6027\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u6790<\/h4>\n<hr \/>\n<h5>\u4e00\u3001\u7f13\u5b58\u7684\u6838\u5fc3\u4f7f\u7528\u573a\u666f<\/h5>\n<h6>1. \u9ad8\u9891\u8bfb\u3001\u4f4e\u9891\u5199\u573a\u666f<\/h6>\n<ul>\n<li>\u5178\u578b\u573a\u666f&#xff1a;\u5546\u54c1\u8be6\u60c5\u9875\u3001\u65b0\u95fb\u8d44\u8baf\u3001\u7528\u6237\u57fa\u672c\u4fe1\u606f\u3002<\/li>\n<li>\u7279\u70b9&#xff1a;\u6570\u636e\u66f4\u65b0\u9891\u7387\u4f4e&#xff0c;\u4f46\u8bbf\u95ee\u91cf\u6781\u9ad8\u3002<\/li>\n<li>\u7b56\u7565&#xff1a;\n<ul>\n<li>Cache-Aside&#xff08;\u65c1\u8def\u7f13\u5b58&#xff09;&#xff1a;\u4f18\u5148\u8bfb\u7f13\u5b58&#xff0c;\u672a\u547d\u4e2d\u65f6\u67e5\u6570\u636e\u5e93\u5e76\u56de\u586b\u3002<\/li>\n<li>TTL&#xff08;\u8fc7\u671f\u65f6\u95f4&#xff09;&#xff1a;\u8bbe\u7f6e\u5408\u7406\u8fc7\u671f\u65f6\u95f4&#xff08;\u59825\u5206\u949f&#xff09;&#xff0c;\u5e73\u8861\u6570\u636e\u65b0\u9c9c\u5ea6\u4e0e\u7f13\u5b58\u547d\u4e2d\u7387\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token class-name\">Product<\/span> <span class=\"token function\">getProduct<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span> id<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">Product<\/span> product <span class=\"token operator\">&#061;<\/span> cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>product <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        product <span class=\"token operator\">&#061;<\/span> db<span class=\"token punctuation\">.<\/span><span class=\"token function\">query<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;SELECT * FROM product WHERE id &#061; ?&#034;<\/span><span class=\"token punctuation\">,<\/span> id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">,<\/span> product<span class=\"token punctuation\">,<\/span> <span class=\"token number\">300<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u7f13\u5b585\u5206\u949f<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> product<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h6>2. \u70ed\u70b9\u6570\u636e\u52a0\u901f<\/h6>\n<ul>\n<li>\u5178\u578b\u573a\u666f&#xff1a;\u5fae\u535a\u70ed\u641c\u3001\u79d2\u6740\u6d3b\u52a8\u5012\u8ba1\u65f6\u3001\u76f4\u64ad\u5728\u7ebf\u4eba\u6570\u3002<\/li>\n<li>\u7279\u70b9&#xff1a;\u77ed\u65f6\u95f4\u5185\u6d41\u91cf\u7a81\u589e&#xff0c;\u9700\u5feb\u901f\u54cd\u5e94\u3002<\/li>\n<li>\u7b56\u7565&#xff1a;\n<ul>\n<li>\u672c\u5730\u7f13\u5b58 &#043; \u5206\u5e03\u5f0f\u7f13\u5b58&#xff1a;\u5982Guava Cache &#043; Redis&#xff0c;\u51cf\u5c11\u7f51\u7edc\u5f00\u9500\u3002<\/li>\n<li>Key\u5206\u7247&#xff1a;\u5c06\u70ed\u70b9Key\u5206\u6563\u5230\u591a\u4e2a\u8282\u70b9&#xff08;\u5982hot:item:123 \u2192 hot:item:123_{shardId}&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>3. \u590d\u6742\u8ba1\u7b97\u7f13\u5b58<\/h6>\n<ul>\n<li>\u5178\u578b\u573a\u666f&#xff1a;\u6392\u884c\u699c\u3001\u805a\u5408\u7edf\u8ba1\u7ed3\u679c&#xff08;\u5982\u7528\u6237\u603b\u79ef\u5206&#xff09;\u3002<\/li>\n<li>\u7279\u70b9&#xff1a;\u8ba1\u7b97\u6210\u672c\u9ad8&#xff0c;\u7ed3\u679c\u53ef\u590d\u7528\u3002<\/li>\n<li>\u7b56\u7565&#xff1a;\n<ul>\n<li>\u9884\u8ba1\u7b97&#043;\u5b9a\u65f6\u66f4\u65b0&#xff1a;\u5b9a\u65f6\u4efb\u52a1\u751f\u6210\u7ed3\u679c\u5e76\u7f13\u5b58\u3002<\/li>\n<li>Write-Through&#xff08;\u76f4\u5199&#xff09;&#xff1a;\u6570\u636e\u53d8\u66f4\u65f6\u540c\u6b65\u66f4\u65b0\u7f13\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>4. \u4f1a\u8bdd\u4e0e\u72b6\u6001\u7ba1\u7406<\/h6>\n<ul>\n<li>\u5178\u578b\u573a\u666f&#xff1a;\u7528\u6237\u767b\u5f55\u72b6\u6001\u3001\u8d2d\u7269\u8f66\u4fe1\u606f\u3002<\/li>\n<li>\u7279\u70b9&#xff1a;\u4e34\u65f6\u6027\u6570\u636e&#xff0c;\u8bfb\u5199\u9891\u7e41\u3002<\/li>\n<li>\u7b56\u7565&#xff1a;\n<ul>\n<li>Redis Session\u5b58\u50a8&#xff1a;\u96c6\u4e2d\u7ba1\u7406\u4f1a\u8bdd&#xff0c;\u652f\u6301\u5206\u5e03\u5f0f\u6269\u5c55\u3002<\/li>\n<li>TTL\u81ea\u52a8\u6e05\u7406&#xff1a;\u8bbe\u7f6e\u4f1a\u8bdd\u8fc7\u671f\u65f6\u95f4&#xff08;\u598230\u5206\u949f&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h5>\u4e8c\u3001\u7f13\u5b58\u4e00\u81f4\u6027\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h5>\n<h6>1. \u4e00\u81f4\u6027\u95ee\u9898\u7684\u6839\u6e90<\/h6>\n<ul>\n<li>\u6570\u636e\u6e90\u591a\u526f\u672c&#xff1a;\u7f13\u5b58\u4e0e\u6570\u636e\u5e93\u5b58\u5728\u4e24\u4efd\u6570\u636e\u3002<\/li>\n<li>\u5e76\u53d1\u64cd\u4f5c&#xff1a;\u591a\u7ebf\u7a0b\/\u591a\u8282\u70b9\u540c\u65f6\u4fee\u6539\u6570\u636e\u3002<\/li>\n<li>\u7f51\u7edc\u5ef6\u8fdf&#xff1a;\u7f13\u5b58\u4e0e\u6570\u636e\u5e93\u66f4\u65b0\u4e0d\u540c\u6b65\u3002<\/li>\n<\/ul>\n<h6>2. \u5178\u578b\u573a\u666f\u4e0e\u89e3\u51b3\u65b9\u6848<\/h6>\n<table>\n<tr>\u573a\u666f\u95ee\u9898\u63cf\u8ff0\u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>\u5148\u66f4\u65b0\u6570\u636e\u5e93&#xff0c;\u540e\u5220\u7f13\u5b58<\/td>\n<td>\u5220\u9664\u7f13\u5b58\u5931\u8d25&#xff0c;\u540e\u7eed\u8bf7\u6c42\u8bfb\u5230\u65e7\u6570\u636e\u3002<\/td>\n<td>\u5ef6\u8fdf\u53cc\u5220&#xff1a;\u66f4\u65b0\u6570\u636e\u5e93 \u2192 \u5220\u9664\u7f13\u5b58 \u2192 \u5ef6\u8fdf\u51e0\u767e\u6beb\u79d2\u518d\u5220\u4e00\u6b21\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5148\u5220\u7f13\u5b58&#xff0c;\u540e\u66f4\u65b0\u6570\u636e\u5e93<\/td>\n<td>\u5220\u7f13\u5b58\u540e\u3001\u66f4\u65b0\u6570\u636e\u5e93\u524d&#xff0c;\u5176\u4ed6\u8bf7\u6c42\u53ef\u80fd\u8bfb\u5230\u65e7\u503c\u5e76\u56de\u586b\u7f13\u5b58\u3002<\/td>\n<td>\u5f02\u6b65\u91cd\u8bd5&#xff1a;\u5220\u9664\u7f13\u5b58\u540e&#xff0c;\u901a\u8fc7\u6d88\u606f\u961f\u5217\u786e\u4fdd\u6570\u636e\u5e93\u66f4\u65b0\u6210\u529f&#xff0c;\u5426\u5219\u91cd\u8bd5\u5220\u9664\u64cd\u4f5c\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5e76\u53d1\u5199\u5bfc\u81f4\u8986\u76d6<\/td>\n<td>\u591a\u4e2a\u7ebf\u7a0b\u540c\u65f6\u66f4\u65b0\u540c\u4e00\u6570\u636e&#xff0c;\u7f13\u5b58\u4e0e\u6570\u636e\u5e93\u4e0d\u4e00\u81f4\u3002<\/td>\n<td>\u5206\u5e03\u5f0f\u9501&#xff1a;\u66f4\u65b0\u65f6\u52a0\u9501&#xff08;\u5982Redis SETNX&#xff09;&#xff0c;\u4e32\u884c\u5316\u64cd\u4f5c\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b&#xff1a;\u5ef6\u8fdf\u53cc\u5220\u4f2a\u4ee3\u7801<\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">updateProduct<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Product<\/span> product<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ 1. \u66f4\u65b0\u6570\u636e\u5e93<\/span><br \/>\n    db<span class=\"token punctuation\">.<\/span><span class=\"token function\">update<\/span><span class=\"token punctuation\">(<\/span>product<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">\/\/ 2. \u5220\u9664\u7f13\u5b58<\/span><br \/>\n    cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">delete<\/span><span class=\"token punctuation\">(<\/span>product<span class=\"token punctuation\">.<\/span><span class=\"token function\">getId<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">\/\/ 3. \u5ef6\u8fdf\u518d\u6b21\u5220\u9664&#xff08;\u5e94\u5bf9\u5e76\u53d1\u573a\u666f&#xff09;<\/span><br \/>\n    executor<span class=\"token punctuation\">.<\/span><span class=\"token function\">schedule<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">-&gt;<\/span> cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">delete<\/span><span class=\"token punctuation\">(<\/span>product<span class=\"token punctuation\">.<\/span><span class=\"token function\">getId<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">500<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">TimeUnit<\/span><span class=\"token punctuation\">.<\/span><span class=\"token constant\">MILLISECONDS<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h6>3. \u6700\u7ec8\u4e00\u81f4\u6027\u65b9\u6848<\/h6>\n<ul>\n<li>Binlog\u76d1\u542c&#xff1a;\u901a\u8fc7Canal\u76d1\u542c\u6570\u636e\u5e93\u53d8\u66f4&#xff0c;\u5f02\u6b65\u66f4\u65b0\u7f13\u5b58\u3002<\/li>\n<li>\u6d88\u606f\u961f\u5217&#xff1a;\u6570\u636e\u5e93\u53d8\u66f4\u540e\u53d1\u9001MQ\u6d88\u606f&#xff0c;\u6d88\u8d39\u8005\u66f4\u65b0\u7f13\u5b58\u3002<\/li>\n<\/ul>\n<hr \/>\n<h5>\u4e09\u3001\u7f13\u5b58\u5e38\u89c1\u95ee\u9898\u4e0e\u5e94\u5bf9\u7b56\u7565<\/h5>\n<h6>1. \u7f13\u5b58\u7a7f\u900f&#xff08;Cache Penetration&#xff09;<\/h6>\n<ul>\n<li>\u95ee\u9898&#xff1a;\u5927\u91cf\u8bf7\u6c42\u67e5\u8be2\u4e0d\u5b58\u5728\u7684\u6570\u636e&#xff08;\u5982\u65e0\u6548ID&#xff09;&#xff0c;\u7ed5\u8fc7\u7f13\u5b58\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\n<ul>\n<li>\u5e03\u9686\u8fc7\u6ee4\u5668&#xff08;Bloom Filter&#xff09;&#xff1a;\u9884\u5b58\u6240\u6709\u5408\u6cd5Key&#xff0c;\u62e6\u622a\u975e\u6cd5\u8bf7\u6c42\u3002<\/li>\n<li>\u7f13\u5b58\u7a7a\u503c&#xff1a;\u5bf9\u4e0d\u5b58\u5728\u7684\u6570\u636e\u7f13\u5b58NULL\u5e76\u8bbe\u7f6e\u77edTTL&#xff08;\u598230\u79d2&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token class-name\">Product<\/span> <span class=\"token function\">getProduct<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span> id<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">Product<\/span> product <span class=\"token operator\">&#061;<\/span> cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>product <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> product<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>bloomFilter<span class=\"token punctuation\">.<\/span><span class=\"token function\">mightContain<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token comment\">\/\/ \u5e03\u9686\u8fc7\u6ee4\u5668\u68c0\u67e5<\/span><br \/>\n        product <span class=\"token operator\">&#061;<\/span> db<span class=\"token punctuation\">.<\/span><span class=\"token function\">query<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;SELECT * FROM product WHERE id &#061; ?&#034;<\/span><span class=\"token punctuation\">,<\/span> id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>product <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">,<\/span> product<span class=\"token punctuation\">,<\/span> <span class=\"token number\">300<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">else<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">,<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">30<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u7f13\u5b58\u7a7a\u503c<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> product<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h6>2. \u7f13\u5b58\u96ea\u5d29&#xff08;Cache Avalanche&#xff09;<\/h6>\n<ul>\n<li>\u95ee\u9898&#xff1a;\u5927\u91cf\u7f13\u5b58\u540c\u65f6\u5931\u6548&#xff0c;\u8bf7\u6c42\u76f4\u63a5\u51b2\u51fb\u6570\u636e\u5e93\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\n<ul>\n<li>\u968f\u673a\u8fc7\u671f\u65f6\u95f4&#xff1a;\u5728\u57fa\u7840TTL\u4e0a\u589e\u52a0\u968f\u673a\u503c&#xff08;\u5982TTL &#043; random(0, 300)&#xff09;\u3002<\/li>\n<li>\u70ed\u70b9\u6570\u636e\u6c38\u4e0d\u8fc7\u671f&#xff1a;\u540e\u53f0\u5b9a\u65f6\u5f02\u6b65\u66f4\u65b0\u7f13\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>3. \u7f13\u5b58\u51fb\u7a7f&#xff08;Cache Breakdown&#xff09;<\/h6>\n<ul>\n<li>\u95ee\u9898&#xff1a;\u70ed\u70b9Key\u8fc7\u671f\u77ac\u95f4&#xff0c;\u5927\u91cf\u5e76\u53d1\u8bf7\u6c42\u76f4\u8fbe\u6570\u636e\u5e93\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\n<ul>\n<li>\u4e92\u65a5\u9501&#xff08;Mutex Lock&#xff09;&#xff1a;\u7b2c\u4e00\u4e2a\u8bf7\u6c42\u91cd\u5efa\u7f13\u5b58\u65f6\u52a0\u9501&#xff0c;\u5176\u4ed6\u8bf7\u6c42\u7b49\u5f85\u3002<\/li>\n<li>\u903b\u8f91\u8fc7\u671f&#xff1a;\u7f13\u5b58Value\u5305\u542b\u903b\u8f91\u8fc7\u671f\u65f6\u95f4&#xff0c;\u5f02\u6b65\u5237\u65b0\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;\u4e92\u65a5\u9501\u5b9e\u73b0<\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token class-name\">Product<\/span> <span class=\"token function\">getProduct<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span> id<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">Product<\/span> product <span class=\"token operator\">&#061;<\/span> cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>product <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token class-name\">Lock<\/span> lock <span class=\"token operator\">&#061;<\/span> redisLock<span class=\"token punctuation\">.<\/span><span class=\"token function\">lock<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u83b7\u53d6\u5206\u5e03\u5f0f\u9501<\/span><br \/>\n        <span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            product <span class=\"token operator\">&#061;<\/span> cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u53cc\u91cd\u68c0\u67e5<\/span><br \/>\n            <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>product <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                product <span class=\"token operator\">&#061;<\/span> db<span class=\"token punctuation\">.<\/span><span class=\"token function\">query<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;SELECT * FROM product WHERE id &#061; ?&#034;<\/span><span class=\"token punctuation\">,<\/span> id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                cache<span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">,<\/span> product<span class=\"token punctuation\">,<\/span> <span class=\"token number\">300<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">finally<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            redisLock<span class=\"token punctuation\">.<\/span><span class=\"token function\">unlock<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> product<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h6>4. \u6570\u636e\u6f02\u79fb&#xff08;Hot Key \u4e0d\u5747&#xff09;<\/h6>\n<ul>\n<li>\u95ee\u9898&#xff1a;\u67d0\u4e2a\u8282\u70b9\u7f13\u5b58\u8fc7\u591a\u70ed\u70b9Key&#xff0c;\u5bfc\u81f4\u8d1f\u8f7d\u4e0d\u5747\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\n<ul>\n<li>\u672c\u5730\u7f13\u5b58&#xff1a;\u5728\u5e94\u7528\u5c42\u7f13\u5b58\u70ed\u70b9\u6570\u636e&#xff0c;\u51cf\u5c11\u8bbf\u95ee\u5206\u5e03\u5f0f\u7f13\u5b58\u3002<\/li>\n<li>Key\u5206\u7247&#xff1a;\u5c06\u70ed\u70b9Key\u5206\u6563\u5230\u591a\u4e2a\u8282\u70b9&#xff08;\u5982product:123 \u2192 product:123_{shardId}&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h5>\u56db\u3001\u7f13\u5b58\u7b56\u7565\u9009\u62e9<\/h5>\n<table>\n<tr>\u7b56\u7565\u9002\u7528\u573a\u666f\u4f18\u70b9\u7f3a\u70b9<\/tr>\n<tbody>\n<tr>\n<td>Cache-Aside<\/td>\n<td>\u901a\u7528\u573a\u666f&#xff0c;\u9700\u5f3a\u4e00\u81f4\u6027\u63a7\u5236<\/td>\n<td>\u7075\u6d3b&#xff0c;\u7f13\u5b58\u4e0e\u6570\u636e\u5e93\u89e3\u8026<\/td>\n<td>\u9700\u5904\u7406\u4e00\u81f4\u6027\u95ee\u9898<\/td>\n<\/tr>\n<tr>\n<td>Read-Through<\/td>\n<td>\u7f13\u5b58\u4f5c\u4e3a\u4e3b\u8981\u6570\u636e\u6e90<\/td>\n<td>\u7b80\u5316\u4ee3\u7801&#xff0c;\u81ea\u52a8\u52a0\u8f7d\u6570\u636e<\/td>\n<td>\u7f13\u5b58\u5c42\u9700\u652f\u6301\u52a0\u8f7d\u903b\u8f91<\/td>\n<\/tr>\n<tr>\n<td>Write-Through<\/td>\n<td>\u5199\u64cd\u4f5c\u9891\u7e41\u4e14\u9700\u5f3a\u4e00\u81f4\u6027<\/td>\n<td>\u6570\u636e\u66f4\u65b0\u5b9e\u65f6\u540c\u6b65<\/td>\n<td>\u5199\u5ef6\u8fdf\u8f83\u9ad8<\/td>\n<\/tr>\n<tr>\n<td>Write-Behind<\/td>\n<td>\u9ad8\u541e\u5410\u5199\u573a\u666f&#xff08;\u5982\u65e5\u5fd7\u8bb0\u5f55&#xff09;<\/td>\n<td>\u5199\u6027\u80fd\u9ad8&#xff0c;\u6279\u91cf\u66f4\u65b0\u6570\u636e\u5e93<\/td>\n<td>\u6570\u636e\u53ef\u80fd\u4e22\u5931&#xff08;\u672a\u6301\u4e45\u5316\u524d\u5b95\u673a&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>&#x1f42e;&#x1f40e;<\/h4>\n<ul>\n<li>\u4f7f\u7528\u573a\u666f&#xff1a;\u7f13\u5b58\u9002\u7528\u4e8e\u8bfb\u591a\u5199\u5c11\u3001\u70ed\u70b9\u6570\u636e\u3001\u590d\u6742\u8ba1\u7b97\u7b49\u573a\u666f&#xff0c;\u663e\u8457\u63d0\u5347\u7cfb\u7edf\u6027\u80fd\u3002<\/li>\n<li>\u4e00\u81f4\u6027\u95ee\u9898&#xff1a;\u901a\u8fc7\u5ef6\u8fdf\u53cc\u5220\u3001\u5f02\u6b65\u6d88\u606f\u3001\u5206\u5e03\u5f0f\u9501\u7b49\u65b9\u6848\u5e73\u8861\u6027\u80fd\u4e0e\u4e00\u81f4\u6027\u3002<\/li>\n<li>\u5e38\u89c1\u95ee\u9898&#xff1a;\u7a7f\u900f\u3001\u96ea\u5d29\u3001\u51fb\u7a7f\u9700\u9488\u5bf9\u6027\u8bbe\u8ba1\u9632\u5fa1\u7b56\u7565&#xff08;\u5e03\u9686\u8fc7\u6ee4\u5668\u3001\u968f\u673aTTL\u3001\u4e92\u65a5\u9501&#xff09;\u3002 \u5408\u7406\u9009\u62e9\u7f13\u5b58\u7b56\u7565&#xff0c;\u7ed3\u5408\u76d1\u63a7\u4e0e\u52a8\u6001\u8c03\u4f18&#xff0c;\u53ef\u6700\u5927\u5316\u7f13\u5b58\u6536\u76ca\u5e76\u89c4\u907f\u6f5c\u5728\u98ce\u9669\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507075206-681b112695b80.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u3010\u4ee3\u7801\u3011\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f_\u6d89\u53ca\u5230\u7f13\u5b58\u7684\u4e00\u4e9b\u573a\u666f,\u4e3e\u4f8b<\/p>\n","protected":false},"author":2,"featured_media":36084,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[398],"topic":[],"class_list":["post-36085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-398"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/36085.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u3010\u4ee3\u7801\u3011\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f_\u6d89\u53ca\u5230\u7f13\u5b58\u7684\u4e00\u4e9b\u573a\u666f,\u4e3e\u4f8b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36085.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-07T07:52:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507075206-681b112695b80.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36085.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36085.html\",\"name\":\"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-07T07:52:08+00:00\",\"dateModified\":\"2025-05-07T07:52:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36085.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36085.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36085.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/36085.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u3010\u4ee3\u7801\u3011\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f_\u6d89\u53ca\u5230\u7f13\u5b58\u7684\u4e00\u4e9b\u573a\u666f,\u4e3e\u4f8b","og_url":"https:\/\/www.wsisp.com\/helps\/36085.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-07T07:52:08+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507075206-681b112695b80.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36085.html","url":"https:\/\/www.wsisp.com\/helps\/36085.html","name":"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-07T07:52:08+00:00","dateModified":"2025-05-07T07:52:08+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36085.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36085.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36085.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7f13\u5b58\u4f7f\u7528\u7684\u5177\u4f53\u573a\u666f\u6709\u54ea\u4e9b\uff1f\u7f13\u5b58\u7684\u4e00\u81f4\u6027\u95ee\u9898\u5982\u4f55\u89e3\u51b3\uff1f\u7f13\u5b58\u4f7f\u7528\u5e38\u89c1\u95ee\u9898\u6709\u54ea\u4e9b\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=36085"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36084"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36085"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}