{"id":386,"date":"2024-10-17T16:31:49","date_gmt":"2024-10-17T08:31:49","guid":{"rendered":"https:\/\/www.zackzzp.top\/?p=386"},"modified":"2024-10-17T16:31:49","modified_gmt":"2024-10-17T08:31:49","slug":"redis%e7%bc%93%e5%ad%98%e7%a9%bf%e9%80%8f%ef%bc%8c%e5%87%bb%e7%a9%bf%ef%bc%8c%e9%9b%aa%e5%b4%a9%e5%b8%83%e9%9a%86%e8%bf%87%e6%bb%a4%e5%99%a8%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"http:\/\/www.zackzzp.top\/index.php\/2024\/10\/17\/redis%e7%bc%93%e5%ad%98%e7%a9%bf%e9%80%8f%ef%bc%8c%e5%87%bb%e7%a9%bf%ef%bc%8c%e9%9b%aa%e5%b4%a9%e5%b8%83%e9%9a%86%e8%bf%87%e6%bb%a4%e5%99%a8%e5%8e%9f%e7%90%86\/","title":{"rendered":"Redis\u7f13\u5b58\u7a7f\u900f\uff0c\u51fb\u7a7f\uff0c\u96ea\u5d29+\u5e03\u9686\u8fc7\u6ee4\u5668\u539f\u7406"},"content":{"rendered":"<h2>\u6982\u8ff0<\/h2>\n<pre class=\"code\">\u00a0\uff081\uff09\u7f13\u5b58\u7a7f\u900f\uff08Cache Penetration\uff09\uff1a\u6307\u67e5\u8be2\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u6570\u636e\uff0c\u7531\u4e8e\u7f13\u5b58\u4e2d\u6ca1\u6709\u6570\u636e\uff0c\n             \u6240\u4ee5\u8fd9\u4e2a\u67e5\u8be2\u8bf7\u6c42\u4f1a\u76f4\u63a5\u7a7f\u8fc7\u7f13\u5b58\u5c42\uff0c\u5230\u8fbe\u6570\u636e\u5e93\u5c42\uff0c\u9020\u6210\u4e86\u6570\u636e\u5e93\u7684\u538b\u529b\u3002\n             \u653b\u51fb\u8005\u53ef\u4ee5\u901a\u8fc7\u6784\u9020\u6076\u610f\u8bf7\u6c42\uff0c\u4f7f\u5f97\u7f13\u5b58\u5c42\u65e0\u6cd5\u547d\u4e2d\u4efb\u4f55\u6570\u636e\uff0c\n             \u4ece\u800c\u5bfc\u81f4\u8bf7\u6c42\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u4ece\u800c\u5f15\u8d77\u6570\u636e\u5e93\u538b\u529b\u8fc7\u5927\u3002\n \n\uff082\uff09\u7f13\u5b58\u51fb\u7a7f\uff08Cache Breakdown\uff09\uff1a\u6307\u7f13\u5b58\u4e2d\u67d0\u4e2a\u70ed\u70b9\u6570\u636e\u5931\u6548\uff0c\u6b64\u65f6\u6709\u5927\u91cf\u5e76\u53d1\u8bf7\u6c42\u540c\u65f6\u8bbf\u95ee\n             \u8fd9\u4e2a\u5931\u6548\u7684\u6570\u636e\uff0c\u5bfc\u81f4\u8fd9\u4e9b\u8bf7\u6c42\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u9020\u6210\u6570\u636e\u5e93\u538b\u529b\u8fc7\u5927\uff0c\n             \u751a\u81f3\u5bfc\u81f4\u6570\u636e\u5e93\u5d29\u6e83\u3002\u901a\u5e38\u662f\u7531\u4e8e\u7f13\u5b58\u4e2d\u67d0\u4e2a\u70ed\u70b9\u6570\u636e\u8fc7\u671f\u5931\u6548\uff0c\n             \u540c\u65f6\u6709\u5927\u91cf\u5e76\u53d1\u8bf7\u6c42\u8bbf\u95ee\u8be5\u6570\u636e\u3002\n \n\uff083\uff09\u7f13\u5b58\u96ea\u5d29\uff08Cache Avalanche\uff09\uff1a\u6307\u7f13\u5b58\u4e2d\u5927\u91cf\u7684\u6570\u636e\u5931\u6548\uff0c\u5bfc\u81f4\u5927\u91cf\u8bf7\u6c42\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\n             \u9020\u6210\u6570\u636e\u5e93\u538b\u529b\u8fc7\u5927\u3002\u901a\u5e38\u662f\u7531\u4e8e\u7f13\u5b58\u4e2d\u5927\u91cf\u7684\u6570\u636e\u5728\u540c\u4e00\u65f6\u95f4\u5931\u6548\uff0c\n             \u5bfc\u81f4\u5927\u91cf\u8bf7\u6c42\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\u3002<\/pre>\n<\/p>\n<pre class=\"code\">\u00a0\uff081\uff09\u7f13\u5b58\u7a7f\u900f\uff1a\u53ef\u4ee5\u5728\u67e5\u8be2\u7f13\u5b58\u4e4b\u524d\uff0c\u5148\u5bf9\u8bf7\u6c42\u7684\u53c2\u6570\u8fdb\u884c\u5408\u6cd5\u6027\u68c0\u67e5\uff0c\u5982\u8fc7\u6ee4\u975e\u6cd5\u5b57\u7b26\u3001\n              \u5224\u65ad\u53c2\u6570\u8303\u56f4\u7b49\uff1b\u6216\u8005\u4f7f\u7528BloomFilter\u7b49\u6570\u636e\u7ed3\u6784\uff0c\u5bf9\u67e5\u8be2\u53c2\u6570\u8fdb\u884c\u8fc7\u6ee4\uff0c\n              \u53ea\u6709\u5728BloomFilter\u4e2d\u5224\u65ad\u6709\u53ef\u80fd\u5b58\u5728\u7684\u60c5\u51b5\u4e0b\u624d\u4f1a\u53bb\u67e5\u8be2\u6570\u636e\u5e93\u3002\n \n\uff082\uff09\u7f13\u5b58\u51fb\u7a7f\uff1a\u53ef\u4ee5\u4f7f\u7528\u9501\u673a\u5236\u6216\u8005\u5206\u5e03\u5f0f\u9501\u673a\u5236\uff0c\u907f\u514d\u5927\u91cf\u5e76\u53d1\u8bf7\u6c42\u540c\u65f6\u8bbf\u95ee\u5931\u6548\u7684\u70ed\u70b9\u6570\u636e\u3002\n              \u6216\u8005\u4e0d\u8bbe\u7f6eTTL\uff0c\u8bbe\u7f6e\u903b\u8f91\u4e0a\u8fc7\u671f\u6807\u8bc6\uff0c\u9700\u8981\u8fc7\u671f\u7684\u65f6\u5019\u76f4\u63a5\u5220\u9664\u6807\u8bc6\n             \n \n\uff083\uff09\u7f13\u5b58\u96ea\u5d29\uff1a\u53ef\u4ee5\u91c7\u7528\u591a\u7ea7\u7f13\u5b58\u67b6\u6784\uff0c\u51cf\u5c11\u7f13\u5b58\u5c42\u7684\u538b\u529b\uff1b\n              \u6216\u8005\u8bbe\u7f6e\u70ed\u70b9\u6570\u636e\u7684\u8fc7\u671f\u65f6\u95f4\u4e3a\u968f\u673a\u65f6\u95f4\uff0c\u907f\u514d\u5728\u540c\u4e00\u65f6\u95f4\u5927\u91cf\u6570\u636e\u540c\u65f6\u5931\u6548\u3002\n              \u53e6\u5916\u53ef\u4ee5\u5728\u7f13\u5b58\u5c42\u548c\u6570\u636e\u5e93\u5c42\u4e4b\u95f4\u6dfb\u52a0\u9650\u6d41\u3001\u7194\u65ad\u7b49\u63aa\u65bd\uff0c\n              \u907f\u514d\u56e0\u7a81\u53d1\u6d41\u91cf\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\u3002<\/pre>\n<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2>\u7f13\u5b58\u7a7f\u900f<\/h2>\n<p>\u7f13\u5b58\u7a7f\u900f\u662f\u6307\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684<strong>\u6570\u636e\u5728\u7f13\u5b58\u4e2d\u548c\u6570\u636e\u5e93\u4e2d\u90fd\u4e0d\u5b58\u5728<\/strong>\uff0c\u8fd9\u6837\u7f13\u5b58\u6c38\u8fdc\u4e0d\u4f1a\u751f\u6548\uff0c<strong>\u8fd9\u4e9b\u8bf7\u6c42\u90fd\u4f1a\u6253\u5230\u6570\u636e\u5e93<\/strong>\u3002<\/p>\n<h3>\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>1.\u7f13\u5b58\u7a7a\u5bf9\u8c61<\/h4>\n<p>\u7b80\u5355\u7684\u6765\u8bf4\uff0c\u5c31\u662f\u8bf7\u6c42\u4e4b\u540e\uff0c\u53d1\u73b0\u6570\u636e\u4e0d\u5b58\u5728\uff0c\u5c31\u5c06null\u503c\u6253\u5165Redis\u4e2d\u3002<\/p>\n<p>\u4f18\u70b9\uff1a\u5b9e\u73b0\u7b80\u5355\uff0c\u7ef4\u62a4\u65b9\u4fbf<br \/>\u7f3a\u70b9\uff1a\u989d\u5916\u7684\u5185\u5b58\u6d88\u8017<br \/>\u53ef\u80fd\u9020\u6210\u77ed\u671f\u7684\u4e0d\u4e00\u81f4<br \/><strong>\u601d\u8def\u5206\u6790<\/strong>\uff1a<br \/>\u5f53\u6211\u4eec\u5ba2\u6237\u7aef\u8bbf\u95ee\u4e0d\u5b58\u5728\u7684\u6570\u636e\u65f6\uff0c\u5148\u8bf7\u6c42 redis\uff0c\u4f46\u662f\u6b64\u65f6 redis \u4e2d\u6ca1\u6709\u6570\u636e\uff0c<br \/>\u6b64\u65f6\u4f1a\u8bbf\u95ee\u5230\u6570\u636e\u5e93\uff0c\u4f46\u662f\u6570\u636e\u5e93\u4e2d\u4e5f\u6ca1\u6709\u6570\u636e\uff0c\u8fd9\u4e2a\u6570\u636e\u7a7f\u900f\u4e86\u7f13\u5b58\uff0c\u76f4\u51fb\u6570\u636e\u5e93\uff0c<br \/>\u6211\u4eec\u90fd\u77e5\u9053\u6570\u636e\u5e93\u80fd\u591f\u627f\u8f7d\u7684\u5e76\u53d1\u4e0d\u5982 redis \u8fd9\u4e48\u9ad8\uff0c\u5982\u679c\u5927\u91cf\u7684\u8bf7\u6c42\u540c\u65f6\u8fc7\u6765\u8bbf\u95ee\u8fd9\u79cd\u4e0d\u5b58\u5728\u7684\u6570\u636e\uff0c<br \/>\u8fd9\u4e9b\u8bf7\u6c42\u5c31\u90fd\u4f1a\u8bbf\u95ee\u5230\u6570\u636e\u5e93\uff0c\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u5c31\u662f\u54ea\u6015\u8fd9\u4e2a\u6570\u636e\u5728\u6570\u636e\u5e93\u4e2d\u4e5f\u4e0d\u5b58\u5728\uff0c<br \/>\u6211\u4eec\u4e5f\u628a\u8fd9\u4e2a\u6570\u636e\u5b58\u5165\u5230 redis \u4e2d\u53bb\uff0c\u8fd9\u6837\uff0c\u4e0b\u6b21\u7528\u6237\u8fc7\u6765\u8bbf\u95ee\u8fd9\u4e2a\u4e0d\u5b58\u5728\u7684\u6570\u636e\uff0c<br \/>\u90a3\u4e48\u5728 redis \u4e2d\u4e5f\u80fd\u627e\u5230\u8fd9\u4e2a\u6570\u636e\u5c31\u4e0d\u4f1a\u8fdb\u5165\u5230\u6570\u636e\u5e93\u4e86\u3002<\/p>\n<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/imaged613d6000c2f1f8c.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/imaged613d6000c2f1f8c.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<p><strong>2.\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668<\/strong><\/p>\n<p>\u5728\u5ba2\u6237\u7aef\u4e0eRedis\u4e4b\u95f4\u52a0\u4e86\u4e00\u4e2a\u5e03\u9686\u8fc7\u6ee4\u5668\uff0c\u5bf9\u8bf7\u6c42\u8fdb\u884c\u8fc7\u6ee4\u3002 <\/p>\n<p>\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u5927\u81f4\u539f\u7406\uff1a\u5e03\u9686\u8fc7\u6ee4\u5668\u4e2d\u5b58\u653e\u4e8c\u8fdb\u5236\u4f4d\u3002<br \/>\u6570\u636e\u5e93\u7684\u6570\u636e\u901a\u8fc7hash\u7b97\u6cd5\u8ba1\u7b97\u5176hash\u503c\u5e76\u5b58\u653e\u5230\u5e03\u9686\u8fc7\u6ee4\u5668\u4e2d\uff0c<br \/>\u4e4b\u540e\u5224\u65ad\u6570\u636e\u662f\u5426\u5b58\u5728\u7684\u65f6\u5019\uff0c\u5c31\u662f\u5224\u65ad\u8be5hash\u503c\u662f0\u8fd8\u662f1\u3002<\/p>\n<p>\u4f46\u662f\u8fd9\u662f\u4e00\u79cd\u6982\u7387\u4e0a\u7684\u7edf\u8ba1\uff0c\u5f53\u5176\u5224\u65ad\u4e0d\u5b58\u5728\u7684\u65f6\u5019\u5c31\u4e00\u5b9a\u662f\u4e0d\u5b58\u5728\uff1b<br \/>\u5f53\u5176\u5224\u65ad\u5b58\u5728\u7684\u65f6\u5019\u5c31\u4e0d\u4e00\u5b9a\u5b58\u5728\u3002\u6240\u4ee5\u6709\u4e00\u5b9a\u7684\u7a7f\u900f\u98ce\u9669<br \/>\u4f18\u70b9\uff1a\u5185\u5b58\u5360\u7528\u8f83\u5c11\uff0c\u6ca1\u6709\u591a\u4f59 key<br \/>\u7f3a\u70b9\uff1a\u5b9e\u73b0\u590d\u6742 \u5b58\u5728\u8bef\u5224\u53ef\u80fd<\/p>\n<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/imageb1ea0e561b774865.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/imageb1ea0e561b774865.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h3>3.\u7ed3\u5408\u4e0a\u8ff0\u4e24\u4e2a\u65b9\u6848\uff0c\u7f16\u7801\u89e3\u51b3<\/h3>\n<p>\u5f53\u6211\u4eec\u53d1\u73b0\uff0c\u7f13\u5b58\u4e2d\u6ca1\u6709\u8fd9\u6761\u8bb0\u5f55\u65f6\uff0c\u6dfb\u52a0\u8fd9\u6761\u8bb0\u5f55\uff0c\u5c06\u503c\u7f6e\u4e3anull<\/p>\n<p>\u5224\u65ad\u7f13\u5b58\u662f\u5426\u547d\u4e2d\u540e\u5728\uff0c\u518d\u5224\u65ad\u4e00\u4e0b\u7f13\u5b58\u662f\u5426\u4e3a\u7a7a\u503c<\/p>\n<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image545e1d3216cf495b.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image545e1d3216cf495b.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<p><strong>\u4ee3\u7801\u5b9e\u73b0<\/strong><\/p>\n<pre class=\"code\">\u00a0@Override\npublic Result queryById(Long id) {\n    \/\/ \u4eceredis\u67e5\u8be2\u5546\u94fa\u7f13\u5b58\n    String key = CACHE_SHOP_KEY + id;\n    String shopJson = stringRedisTemplate.opsForValue().get(key);\n \n    \/\/ \u5224\u65ad\u662f\u5426\u5b58\u5728\n    if (StrUtil.isNotBlank(shopJson)) {\n        \/\/ \u5b58\u5728\uff0c\u76f4\u63a5\u8fd4\u56de\n        Shop shop = JSONUtil.toBean(shopJson, Shop.class);\n        return Result.ok(shop);\n    }\n \n    \/\/ 1.\u68c0\u67e5\u7f13\u5b58\u4e2d\u662f\u5426\u6709\u7a7a\u503c\n    if (shopJson == null) {\n        \/\/ \u8fd4\u56de\u4e00\u4e2a\u9519\u8bef\u4fe1\u606f\n        return Result.fail(\"\u5e97\u94fa\u4e0d\u5b58\u5728\uff01\");\n    }\n \n    \/\/ \u4e0d\u5b58\u5728\uff0c\u6839\u636eid\u67e5\u8be2\u6570\u636e\u5e93\n    Shop shop = getById(id);\n \n    \/\/ \u4e0d\u5b58\u5728\uff0c\u8fd4\u56de\u9519\u8bef\n    if (shop == null) {\n        \/\/ 2.\u9632\u6b62\u7a7f\u900f\u95ee\u9898\uff0c\u5c06\u7a7a\u503c\u5199\u5165redis\n        stringRedisTemplate.opsForValue().set(key, \"\", CACHE_NULL_TTL, TimeUnit.MINUTES);\n        return Result.fail(\"\u5e97\u94fa\u4e0d\u5b58\u5728\uff01\");\n    }\n \n    \/\/ \u5b58\u5728\uff0c\u5199\u5165Redis\n    \/\/ \u628ashop\u8f6c\u6362\u6210\u4e3aJSON\u5f62\u5f0f\u5199\u5165Redis\n    \/\/ \u540c\u65f6\u6dfb\u52a0\u8d85\u65f6\u65f6\u95f4\n    stringRedisTemplate.opsForValue().set(key, JSONUtil.toJsonStr(shop), CACHE_SHOP_TTL, TimeUnit.MINUTES);\n    return Result.ok(shop);\n}<\/pre>\n<p><strong>\u603b\u7ed3\u7f13\u5b58\u7a7f\u900f\u7684\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\uff081\uff09\u7f13\u5b58 null \u503c<br \/>\uff082\uff09\u5e03\u9686\u8fc7\u6ee4<br \/>\uff083\uff09\u589e\u5f3a id \u7684\u590d\u6742\u5ea6\uff0c\u907f\u514d\u88ab\u731c\u6d4b id \u89c4\u5f8b<br \/>\uff084\uff09\u505a\u597d\u6570\u636e\u7684\u57fa\u7840\u683c\u5f0f\u6821\u9a8c<br \/>\uff085\uff09\u52a0\u5f3a\u7528\u6237\u6743\u9650\u6821\u9a8c<br \/>\uff086\uff09\u505a\u597d\u70ed\u70b9\u53c2\u6570\u7684\u9650\u6d41<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2>\u7f13\u5b58\u51fb\u7a7f<\/h2>\n<p>\u7f13\u5b58\u51fb\u7a7f\u662f\u70ed\u70b9key\u8fc7\u671f\uff0c\u5bfc\u81f4\u5927\u91cf\u8bf7\u6c42\u76f4\u63a5\u6253\u5230\u6570\u636e\u5e93\uff0c\u9020\u6210\u6570\u636e\u5e93\u538b\u529b\u8fc7\u5927<\/p>\n<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/imagea94f0f315dc9701c.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/imagea94f0f315dc9701c.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h3>\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>\u4e92\u65a5\u9501<\/h4>\n<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image860ab1cb6131b39b.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image860ab1cb6131b39b.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h4>\u903b\u8f91\u8fc7\u671f<\/h4>\n<p>\u4e0d\u8bbe\u7f6e\u5b9e\u9645\u7684\u8fc7\u671f\u65f6\u95f4\uff0c\u53ea\u662f\u540d\u4e49\u4e0a\u5b9a\u4e49\u4e00\u4e2a\u8fc7\u671f\u65f6\u95f4<\/p>\n<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image92a237ee111b2203.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image92a237ee111b2203.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h4>\u4e92\u65a5\u9501\u548c\u903b\u8f91\u8fc7\u671f\u5206\u6790\u5bf9\u6bd4<\/p>\n<\/h4>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image36fd4becd72ff0c1.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image36fd4becd72ff0c1.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2>\u7f13\u5b58\u96ea\u5d29<\/h2>\n<p>\u7f13\u5b58\u96ea\u5d29\u6307\u7684\u662f\u540c\u4e00\u65f6\u95f4\u5927\u91cfkey\u540c\u65f6\u8fc7\u671f\u6216\u8005Redis\u670d\u52a1\u5b95\u673a\uff0c\u5bfc\u81f4\u5927\u91cf\u8bf7\u6c42\u76f4\u63a5\u6253\u5230\u6570\u636e\u5e93\uff0c\u9020\u6210\u6570\u636e\u5e93\u5d29\u6e83<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image9ee610ba0e92612f.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image9ee610ba0e92612f.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>\uff081\uff09\u7ed9\u4e0d\u540c\u7684Key\u7684TTL\u6dfb\u52a0\u968f\u673a\u503c\uff08\u63a8\u8350\uff09<br \/>\u64cd\u4f5c\u7b80\u5355\uff0c\u5f53\u6211\u4eec\u5728\u505a\u7f13\u5b58\u9884\u70ed\u7684\u65f6\u5019\uff0c\u5c31\u6709\u53ef\u80fd\u5728\u540c\u4e00\u65f6\u95f4\u6279\u91cf\u63d2\u5165\u5927\u91cf\u7684\u6570\u636e\uff0c<br \/>\u90a3\u4e48\u5982\u679c\u5b83\u4eec\u7684TTL\u90fd\u4e00\u6837\u7684\u8bdd\u5c31\u53ef\u80fd\u51fa\u73b0\u5927\u91cfkey\u540c\u65f6\u8fc7\u671f\u7684\u60c5\u51b5\uff01\uff01\uff01<br \/>\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5728\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4TTL\u7684\u65f6\u5019\uff0c\u5b9a\u4e49\u4e00\u4e2a\u8303\u56f4\uff0c\u8ffd\u52a0\u8be5\u8303\u56f4\u5185\u7684\u4e00\u4e2a\u968f\u673a\u6570\u3002<\/p>\n<p>\uff082\uff09\u5229\u7528Redis\u96c6\u7fa4\u63d0\u9ad8\u670d\u52a1\u7684\u53ef\u7528\u6027<br \/>\u4f7f\u7528\u96c6\u7fa4\u63d0\u9ad8\u53ef\u9760\u6027<\/p>\n<p>\uff083\uff09\u7ed9\u7f13\u5b58\u4e1a\u52a1\u6dfb\u52a0\u964d\u7ea7\u9650\u6d41\u7b56\u7565<br \/>\u5fae\u670d\u52a1\u7684\u77e5\u8bc6<\/p>\n<p>\uff084\uff09\u7ed9\u4e1a\u52a1\u6dfb\u52a0\u591a\u7ea7\u7f13\u5b58 <br \/>\u8bf7\u6c42\u5230\u8fbe\u6d4f\u89c8\u5668\uff0cnginx\u53ef\u4ee5\u505a\u7f13\u5b58\uff0c\u672a\u547d\u4e2d\u627eRedis\uff0c\u518d\u672a\u547d\u4e2d\u627eJVM\uff0c\u6700\u540e\u5230\u6570\u636e\u5e93&#8230;&#8230;<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2>\u5e03\u9686\u8fc7\u6ee4\u5668<\/h2>\n<h3>\u6982\u8ff0<\/h3>\n<p><strong>\u4ec0\u4e48\u662f\u5e03\u9686\u8fc7\u6ee4\u5668<\/strong><br \/>\u5e03\u9686\u8fc7\u6ee4\u5668\uff08Bloom Filter\uff09\u662f 1970 \u5e74\u7531\u5e03\u9686\u63d0\u51fa\u7684\uff0c\u662f\u4e00\u79cd\u975e\u5e38\u8282\u7701\u7a7a\u95f4\u7684\u6982\u7387\u6570\u636e\u7ed3\u6784\uff0c\u8fd0\u884c\u901f\u5ea6\u5feb\uff0c\u5360\u7528\u5185\u5b58\u5c0f\uff0c\u4f46\u662f\u6709\u4e00\u5b9a\u7684\u8bef\u5224\u7387\u4e14\u65e0\u6cd5\u5220\u9664\u5143\u7d20\u3002\u5b83\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u5f88\u957f\u7684\u4e8c\u8fdb\u5236\u5411\u91cf\u548c\u4e00\u7cfb\u5217\u968f\u673a\u6620\u5c04\u51fd\u6570\u7ec4\u6210\uff0c\u4e3b\u8981\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u5728\u4e00\u4e2a\u96c6\u5408\u4e2d\u3002<\/p>\n<p>\u901a\u5e38\u6211\u4eec\u90fd\u4f1a\u9047\u5230\u5224\u65ad\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u5728\u67d0\u4e2a\u96c6\u5408\u4e2d\u7684\u4e1a\u52a1\u573a\u666f\uff0c\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u53ef\u80fd\u90fd\u662f\u91c7\u7528 HashMap\u7684Put\u65b9\u6cd5\u6216\u8005\u5176\u4ed6\u96c6\u5408\u5c06\u6570\u636e\u4fdd\u5b58\u8d77\u6765\uff0c\u7136\u540e\u8fdb\u884c\u6bd4\u8f83\u786e\u5b9a\uff0c\u4f46\u662f\u5982\u679c\u5143\u7d20\u5f88\u591a\u7684\u60c5\u51b5\u4e0b\uff0c\u91c7\u7528\u8fd9\u79cd\u65b9\u5f0f\u5c31\u4f1a\u975e\u5e38\u6d6a\u8d39\u7a7a\u95f4\uff0c\u6700\u7ec8\u8fbe\u5230\u74f6\u9888\uff0c\u68c0\u7d22\u901f\u5ea6\u4e5f\u4f1a\u8d8a\u6765\u8d8a\u6162\uff0c\u8fd9\u65f6\u5e03\u9686\u8fc7\u6ee4\u5668\uff08Bloom Filter\uff09\u5c31\u5e94\u8fd0\u800c\u751f\u4e86\u3002<\/p>\n<p><strong>\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u4f18\u70b9<\/strong>\uff1a<br \/>\u652f\u6301\u6d77\u91cf\u6570\u636e\u573a\u666f\u4e0b\u9ad8\u6548\u5224\u65ad\u5143\u7d20\u662f\u5426\u5b58\u5728<br \/>\u5e03\u9686\u8fc7\u6ee4\u5668\u5b58\u50a8\u7a7a\u95f4\u5c0f\uff0c\u5e76\u4e14\u8282\u7701\u7a7a\u95f4\uff0c\u4e0d\u5b58\u50a8\u6570\u636e\u672c\u8eab\uff0c\u4ec5\u5b58\u50a8hash\u7ed3\u679c\u53d6\u6a21\u8fd0\u7b97\u540e\u7684\u4f4d\u6807\u8bb0<br \/>\u4e0d\u5b58\u50a8\u6570\u636e\u672c\u8eab\uff0c\u6bd4\u8f83\u9002\u5408\u67d0\u4e9b\u4fdd\u5bc6\u573a\u666f<br \/>\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u7f3a\u70b9\uff1a<br \/>\u4e0d\u5b58\u50a8\u6570\u636e\u672c\u8eab\uff0c\u6240\u4ee5\u53ea\u80fd\u6dfb\u52a0\u4f46\u4e0d\u53ef\u5220\u9664\uff0c\u56e0\u4e3a\u5220\u6389\u5143\u7d20\u4f1a\u5bfc\u81f4\u8bef\u5224\u7387\u589e\u52a0<br \/>\u7531\u4e8e\u5b58\u5728hash\u78b0\u649e\uff0c\u5339\u914d\u7ed3\u679c\u5982\u679c\u662f\u201c\u5b58\u5728\u4e8e\u8fc7\u6ee4\u5668\u4e2d\u201d\uff0c\u5b9e\u9645\u4e0d\u4e00\u5b9a\u5b58\u5728<br \/>\u5f53\u5bb9\u91cf\u5feb\u6ee1\u65f6\uff0chash\u78b0\u649e\u7684\u6982\u7387\u53d8\u5927\uff0c\u63d2\u5165\u3001\u67e5\u8be2\u7684\u9519\u8bef\u7387\u4e5f\u5c31\u968f\u4e4b\u589e\u52a0\u4e86<br \/>\u5e03\u9686\u8fc7\u6ee4\u5668\u4e2d\u4e00\u4e2a\u5143\u7d20\u5982\u679c\u5224\u65ad\u7ed3\u679c\u4e3a\u5b58\u5728\u7684\u65f6\u5019\u5143\u7d20\u4e0d\u4e00\u5b9a\u5b58\u5728\uff0c\u4f46\u662f\u5224\u65ad\u7ed3\u679c\u4e3a\u4e0d\u5b58\u5728\u7684\u65f6\u5019\u5219\u4e00\u5b9a\u4e0d\u5b58\u5728\u3002\u56e0\u6b64\uff0c\u5e03\u9686\u8fc7\u6ee4\u5668\u4e0d\u9002\u5408\u90a3\u4e9b\u5bf9\u7ed3\u679c\u5fc5\u987b\u7cbe\u51c6\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<p><strong>\u5176\u4ed6\u95ee\u9898<\/strong><br \/>\u4e0d\u652f\u6301\u8ba1\u6570\uff0c\u540c\u4e00\u4e2a\u5143\u7d20\u53ef\u4ee5\u591a\u6b21\u63d2\u5165\uff0c\u4f46\u6548\u679c\u548c\u63d2\u5165\u4e00\u6b21\u76f8\u540c<br \/>\u7531\u4e8e\u9519\u8bef\u7387\u5f71\u54cdhash\u51fd\u6570\u7684\u6570\u91cf\uff0c\u5f53hash\u51fd\u6570\u8d8a\u591a\uff0c\u6bcf\u6b21\u63d2\u5165\u3001\u67e5\u8be2\u9700\u505a\u7684hash\u64cd\u4f5c\u5c31\u8d8a\u591a<br \/><strong>\u5e03\u9686\u8fc7\u6ee4\u5668\u9002\u5408\u7684\u573a\u666f<\/strong><\/p>\n<p>\u533a\u5757\u94fe\u4e2d\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u6765\u52a0\u5feb\u94b1\u5305\u540c\u6b65\uff1b\u4ee5\u592a\u574a\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u7528\u4e8e\u5feb\u901f\u67e5\u8be2\u4ee5\u592a\u574a\u533a\u5757\u94fe\u7684\u65e5\u5fd7<br \/>\u6570\u636e\u5e93\u9632\u6b62\u7a7f\u5e93\uff0cGoogle Bigtable\uff0cHBase \u548c Cassandra \u4ee5\u53ca Postgresql \u4f7f\u7528BloomFilter\u6765\u51cf\u5c11\u4e0d\u5b58\u5728\u7684\u884c\u6216\u5217\u7684\u78c1\u76d8\u67e5\u627e\u3002\u907f\u514d\u4ee3\u4ef7\u9ad8\u6602\u7684\u78c1\u76d8\u67e5\u627e\u4f1a\u5927\u5927\u63d0\u9ad8\u6570\u636e\u5e93\u67e5\u8be2\u64cd\u4f5c\u7684\u6027\u80fd<\/p>\n<p>\u5224\u65ad\u7528\u6237\u662f\u5426\u9605\u8bfb\u8fc7\u67d0\u4e00\u4e2a\u89c6\u9891\u6216\u8005\u6587\u7ae0\uff0c\u7c7b\u4f3c\u6296\u97f3\uff0c\u5237\u8fc7\u7684\u89c6\u9891\u5f80\u4e0b\u6ed1\u52a8\u4e0d\u518d\u5237\u5230\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u5b9a\u7684\u8bef\u5224\uff0c\u4f46\u4e0d\u4f1a\u8ba9\u7528\u6237\u770b\u5230\u91cd\u590d\u7684\u5185\u5bb9<\/p>\n<p>\u7f51\u9875\u722c\u866b\u5bf9URL\u53bb\u91cd\uff0c\u91c7\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u6765\u5bf9\u5df2\u7ecf\u722c\u53d6\u8fc7\u7684URL\u8fdb\u884c\u5b58\u50a8\uff0c\u8fd9\u6837\u5728\u8fdb\u884c\u4e0b\u4e00\u6b21\u722c\u53d6\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u5224\u65ad\u51fa\u8fd9\u4e2aURL\u662f\u5426\u722c\u53d6\u8fc7\u4e86<\/p>\n<p>\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u6765\u505a\u9ed1\u540d\u5355\u8fc7\u6ee4\uff0c\u9488\u5bf9\u4e0d\u540c\u7684\u7528\u6237\u662f\u5426\u5b58\u5165\u767d\u540d\u5355\u6216\u8005\u9ed1\u540d\u5355\uff0c\u867d\u7136\u6709\u4e00\u5b9a\u7684\u8bef\u5224\uff0c\u4f46\u662f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u8fd8\u662f\u5f88\u597d\u7684\u89e3\u51b3\u95ee\u9898<\/p>\n<p>\u7f13\u5b58\u51fb\u7a7f\u573a\u666f\uff0c\u4e00\u822c\u5224\u65ad\u7528\u6237\u662f\u5426\u5728\u7f13\u5b58\u4e2d\uff0c\u5982\u679c\u5b58\u5728\u5219\u76f4\u63a5\u8fd4\u56de\u7ed3\u679c\uff0c\u4e0d\u5b58\u5728\u5219\u67e5\u8be2\u6570\u636e\u5e93\uff0c\u5982\u679c\u6765\u4e00\u6ce2\u51b7\u6570\u636e\uff0c\u4f1a\u5bfc\u81f4\u7f13\u5b58\u5927\u91cf\u51fb\u7a7f\uff0c\u9020\u6210\u96ea\u5d29\u6548\u5e94\uff0c\u8fd9\u65f6\u5019\u53ef\u4ee5\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u5f53\u7f13\u5b58\u7684\u7d22\u5f15\uff0c\u53ea\u6709\u5728\u5e03\u9686\u8fc7\u6ee4\u5668\u4e2d\uff0c\u624d\u53bb\u67e5\u8be2\u7f13\u5b58\uff0c\u5982\u679c\u6ca1\u67e5\u8be2\u5230\u5219\u7a7f\u900f\u5230\u6570\u636e\u5e93\u67e5\u8be2\u3002\u5982\u679c\u4e0d\u5728\u5e03\u9686\u8fc7\u6ee4\u5668\u4e2d\uff0c\u5219\u76f4\u63a5\u8fd4\u56de\uff0c\u4f1a\u9020\u6210\u4e00\u5b9a\u7a0b\u5ea6\u7684\u8bef\u5224<\/p>\n<p>WEB\u62e6\u622a\u5668\uff0c\u5982\u679c\u76f8\u540c\u8bf7\u6c42\u5219\u62e6\u622a\uff0c\u9632\u6b62\u91cd\u590d\u88ab\u653b\u51fb\u3002\u7528\u6237\u7b2c\u4e00\u6b21\u8bf7\u6c42\uff0c\u5c06\u8bf7\u6c42\u53c2\u6570\u653e\u5165\u5e03\u9686\u8fc7\u6ee4\u5668\u4e2d\uff0c\u5f53\u7b2c\u4e8c\u6b21\u8bf7\u6c42\u65f6\uff0c\u5148\u5224\u65ad\u8bf7\u6c42\u53c2\u6570\u662f\u5426\u88ab\u5e03\u9686\u8fc7\u6ee4\u5668\u547d\u4e2d\u3002\u53ef\u4ee5\u63d0\u9ad8\u7f13\u5b58\u547d\u4e2d\u7387\u3002Squid \u7f51\u9875\u4ee3\u7406\u7f13\u5b58\u670d\u52a1\u5668\u5728 cache digests \u4e2d\u5c31\u4f7f\u7528\u4e86\u5e03\u9686\u8fc7\u6ee4\u5668\u3002<\/p>\n<p>Google Chrome\u6d4f\u89c8\u5668\u4f7f\u7528\u4e86\u5e03\u9686\u8fc7\u6ee4\u5668\u52a0\u901f\u5b89\u5168\u6d4f\u89c8\u670d\u52a1<\/p>\n<p>Google \u8457\u540d\u7684\u5206\u5e03\u5f0f\u6570\u636e\u5e93 Bigtable \u4f7f\u7528\u4e86\u5e03\u9686\u8fc7\u6ee4\u5668\u6765\u67e5\u627e\u4e0d\u5b58\u5728\u7684\u884c\u6216\u5217\uff0c\u4ee5\u51cf\u5c11\u78c1\u76d8\u67e5\u627e\u7684IO\u6b21\u6570<\/p>\n<p>Squid \u7f51\u9875\u4ee3\u7406\u7f13\u5b58\u670d\u52a1\u5668\u5728 cache digests \u4e2d\u4f7f\u7528\u4e86\u4e5f\u5e03\u9686\u8fc7\u6ee4\u5668<\/p>\n<p>Venti \u6587\u6863\u5b58\u50a8\u7cfb\u7edf\u4e5f\u91c7\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u6765\u68c0\u6d4b\u5148\u524d\u5b58\u50a8\u7684\u6570\u636e<\/p>\n<p>SPIN \u6a21\u578b\u68c0\u6d4b\u5668\u4e5f\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u5728\u5927\u89c4\u6a21\u9a8c\u8bc1\u95ee\u9898\u65f6\u8ddf\u8e2a\u53ef\u8fbe\u72b6\u6001\u7a7a\u95f4<\/p>\n<p>Google Chrome\u6d4f\u89c8\u5668\u4f7f\u7528\u4e86\u5e03\u9686\u8fc7\u6ee4\u5668\u52a0\u901f\u5b89\u5168\u6d4f\u89c8\u670d\u52a1<\/p>\n<hr \/>\n<h3>\u5e03\u9686\u8fc7\u6ee4\u5668\u539f\u7406<\/h3>\n<h4>\u6570\u636e\u7ed3\u6784<\/h4>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/imageba5dc06232db059a.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/imageba5dc06232db059a.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h4>\u589e\u52a0\u5143\u7d20<\/h4>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image7b6cce1983746aaf.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image7b6cce1983746aaf.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h4>\u67e5\u8be2\u5143\u7d20<\/h4>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2024\/10\/17\/image4ed16659440c8997.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2024\/10\/17\/image4ed16659440c8997.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" border=\"0\" \/><\/div><\/p>\n<h4>\u5220\u9664\u5143\u7d20<\/h4>\n<p>\u5e03\u9686\u8fc7\u6ee4\u5668\u662f\u4e0d\u80fd\u5220\u9664\u7684\uff0c\u5220\u9664\u4f1a\u51fa\u95ee\u9898\uff0c\u6bd4\u5982\u4e0a\u9762\u6dfb\u52a0\u5143\u7d20\u7684 bit \u4f4d 5 \u88ab\u4e24\u4e2a\u53d8\u91cf\u7684\u54c8\u5e0c\u503c\u5171\u540c\u8986\u76d6\u7684\u60c5\u51b5\u4e0b\uff0c\u4e00\u65e6\u6211\u4eec\u5220\u9664\u5176\u4e2d\u4e00\u4e2a\u503c\u3002\u4f8b\u5982\u201cxinlang\u201d\u800c\u5c06\u5176\u7f6e\u4f4d 0\uff0c\u90a3\u4e48\u4e0b\u6b21\u5224\u65ad\u53e6\u4e00\u4e2a\u503c\u4f8b\u5982\u201cbaidu\u201d\u662f\u5426\u5b58\u5728\u7684\u8bdd\uff0c\u4f1a\u76f4\u63a5\u8fd4\u56de false\uff0c\u800c\u5b9e\u9645\u4e0a\u6211\u4eec\u5e76\u6ca1\u6709\u5220\u9664\u5b83\uff0c\u8fd9\u5c31\u5bfc\u81f4\u4e86\u8bef\u5224\u7684\u95ee\u9898\u3002<\/p>\n<hr \/>\n<h3>\u5982\u4f55\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668<\/h3>\n<ol>\n<li>Goole\u5f00\u6e90Guava<\/li>\n<li>redis\u914d\u7f6e<\/li>\n<li>redission\u96c6\u6210<\/li>\n<\/ol>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 \u00a0\uff081\uff09\u7f13\u5b58\u7a7f\u900f\uff08Cache Penetration\uff09\uff1a\u6307\u67e5\u8be2\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u6570\u636e\uff0c\u7531\u4e8e\u7f13\u5b58\u4e2d\u6ca1\u6709\u6570\u636e\uff0c \u6240 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":2,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":388,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts\/386\/revisions\/388"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/media\/387"}],"wp:attachment":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}