{"id":799,"date":"2023-08-25T09:34:13","date_gmt":"2023-08-25T01:34:13","guid":{"rendered":"https:\/\/zhaocunwei.co.uk\/?p=799"},"modified":"2023-08-25T09:39:18","modified_gmt":"2023-08-25T01:39:18","slug":"ehcache","status":"publish","type":"post","link":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/","title":{"rendered":"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>\u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u4f7f\u7528\u672c\u5730\u7f13\u5b58 Ehcache \u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5\u662f\u4e00\u4e2a\u9700\u8981\u4ed4\u7ec6\u8003\u8651\u7684\u4efb\u52a1\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n<h1>\u65b9\u6848\u8bbe\u8ba1\u548c\u5b9e\u8df5\u6b65\u9aa4<\/h1>\n<p>\u4e86\u89e3\u4e1a\u52a1\u9700\u6c42\u548c\u573a\u666f\uff1a \u9996\u5148\uff0c\u8981\u5168\u9762\u4e86\u89e3\u4e1a\u52a1\u7684\u5e76\u53d1\u91cf\u3001\u8ba4\u8bc1\u9891\u7387\u4ee5\u53ca\u6570\u636e\u8bbf\u95ee\u6a21\u5f0f\u3002\u8fd9\u6709\u52a9\u4e8e\u786e\u5b9a\u7f13\u5b58\u7684\u9002\u7528\u8303\u56f4\u548c\u8bbe\u8ba1\u65b9\u5411\u3002<\/p>\n<p>\u7f13\u5b58\u7b56\u7565\uff1a \u6839\u636e\u4e1a\u52a1\u573a\u666f\uff0c\u8003\u8651\u91c7\u7528\u4e0d\u540c\u7684\u7f13\u5b58\u7b56\u7565\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>\u8ba4\u8bc1\u4ee4\u724c\u7f13\u5b58\uff1a\u9488\u5bf9\u8ba4\u8bc1\u4ee4\u724c\u7684\u7f13\u5b58\uff0c\u4ee5\u51cf\u5c11\u5bf9\u8ba4\u8bc1\u670d\u52a1\u5668\u7684\u9891\u7e41\u8bf7\u6c42\u3002<br \/>\n\u7528\u6237\u4fe1\u606f\u7f13\u5b58\uff1a\u7f13\u5b58\u7528\u6237\u4fe1\u606f\uff0c\u4ee5\u51cf\u8f7b\u5bf9\u7528\u6237\u6570\u636e\u5e93\u7684\u538b\u529b\u3002<\/p>\n<pre><code class=\"language-java\">import net.sf.ehcache.Cache;\nimport net.sf.ehcache.CacheManager;\nimport net.sf.ehcache.Element;\n\n\/\/ \u521d\u59cb\u5316\u7f13\u5b58\u7ba1\u7406\u5668\nCacheManager cacheManager = CacheManager.getInstance();\n\n\/\/ \u521b\u5efa\u8ba4\u8bc1\u4ee4\u724c\u7f13\u5b58\nCache authTokenCache = new Cache(&quot;AuthTokenCache&quot;, 10000, false, false, 3600, 1800);\ncacheManager.addCache(authTokenCache);\n\n\/\/ \u521b\u5efa\u7528\u6237\u4fe1\u606f\u7f13\u5b58\nCache userInfoCache = new Cache(&quot;UserInfoCache&quot;, 10000, false, false, 7200, 3600);\ncacheManager.addCache(userInfoCache);\n<\/code><\/pre>\n<p>\u7f13\u5b58\u6570\u636e\u7684\u9009\u62e9\uff1a \u6839\u636e\u4e1a\u52a1\u9700\u6c42\uff0c\u51b3\u5b9a\u54ea\u4e9b\u6570\u636e\u9700\u8981\u88ab\u7f13\u5b58\uff0c\u4ee5\u53ca\u7f13\u5b58\u7684\u6709\u6548\u671f\u3002\u5bf9\u4e8e\u8ba4\u8bc1\u573a\u666f\uff0c\u53ef\u80fd\u9700\u8981\u7f13\u5b58\u7684\u6570\u636e\u5305\u62ec\u7528\u6237\u4fe1\u606f\u3001\u6743\u9650\u4fe1\u606f\u7b49\u3002<\/p>\n<pre><code class=\"language-java\">\/\/ \u5b58\u50a8\u8ba4\u8bc1\u4ee4\u724c\u5230\u7f13\u5b58\nString authToken = &quot;some_auth_token&quot;;\nElement authTokenElement = new Element(userId, authToken);\nauthTokenCache.put(authTokenElement);\n\n\/\/ \u5b58\u50a8\u7528\u6237\u4fe1\u606f\u5230\u7f13\u5b58\nUser user = getUserFromDatabase(userId);\nElement userInfoElement = new Element(userId, user);\nuserInfoCache.put(userInfoElement);\n<\/code><\/pre>\n<p>\u7f13\u5b58\u66f4\u65b0\u7b56\u7565\uff1a \u5f53\u7528\u6237\u4fe1\u606f\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u9700\u8981\u8003\u8651\u5982\u4f55\u66f4\u65b0\u7f13\u5b58\u3002\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u65b9\u6cd5\u4e4b\u4e00\uff1a<\/p>\n<p>\u624b\u52a8\u5931\u6548\uff1a\u5728\u7528\u6237\u4fe1\u606f\u53d8\u66f4\u65f6\uff0c\u624b\u52a8\u4f7f\u7f13\u5b58\u5931\u6548\uff0c\u4e0b\u6b21\u8bf7\u6c42\u65f6\u91cd\u65b0\u52a0\u8f7d\u3002<br \/>\n\u5b9a\u65f6\u5237\u65b0\uff1a\u5b9a\u65f6\u6e05\u9664\u7f13\u5b58\uff0c\u5f3a\u5236\u5237\u65b0\u6700\u65b0\u6570\u636e\u3002<\/p>\n<p>\u7f13\u5b58\u6dd8\u6c70\u7b56\u7565\uff1a \u5f53\u7f13\u5b58\u5bb9\u91cf\u4e0d\u8db3\u65f6\uff0c\u9700\u8981\u786e\u5b9a\u54ea\u4e9b\u7f13\u5b58\u6570\u636e\u5e94\u8be5\u88ab\u6dd8\u6c70\u3002\u4e00\u4e9b\u5e38\u89c1\u7684\u7b56\u7565\u5305\u62ec\u57fa\u4e8e\u65f6\u95f4\u3001\u57fa\u4e8e\u8bbf\u95ee\u9891\u7387\u7b49\u3002<\/p>\n<pre><code class=\"language-java\">\/\/ \u624b\u52a8\u5931\u6548\nauthTokenCache.remove(userId);\n\n\/\/ \u5b9a\u65f6\u5237\u65b0\nScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);\nscheduler.schedule(() -&gt; {\n    \/\/ \u6e05\u9664\u5e76\u91cd\u65b0\u52a0\u8f7d\u7f13\u5b58\n    userInfoCache.remove(userId);\n    User newUser = getUserFromDatabase(userId);\n    Element newUserElement = new Element(userId, newUser);\n    userInfoCache.put(newUserElement);\n}, 1, TimeUnit.HOURS);\n<\/code><\/pre>\n<pre><code class=\"language-java\">&lt;cache name=&quot;UserInfoCache&quot;\n       maxEntriesLocalHeap=&quot;10000&quot;\n       eternal=&quot;false&quot;\n       timeToLiveSeconds=&quot;7200&quot;\n       timeToIdleSeconds=&quot;3600&quot;&gt;\n    &lt;persistence strategy=&quot;none&quot;\/&gt;\n    &lt;heap&gt;\n        &lt;policy class=&quot;org.ehcache.core.eviction.LFUPolicy&quot;\/&gt;\n    &lt;\/heap&gt;\n&lt;\/cache&gt;\n<\/code><\/pre>\n<p>\u591a\u7ea7\u7f13\u5b58\uff1a \u5bf9\u4e8e\u9ad8\u5e76\u53d1\u573a\u666f\uff0c\u53ef\u4ee5\u8003\u8651\u591a\u7ea7\u7f13\u5b58\uff0c\u5c06\u6570\u636e\u7f13\u5b58\u5728\u4e0d\u540c\u5c42\u7ea7\u7684\u7f13\u5b58\u4e2d\uff0c\u4ee5\u4fbf\u66f4\u5feb\u5730\u83b7\u53d6\u6570\u636e\u3002<\/p>\n<pre><code class=\"language-java\">import org.ehcache.Cache;\nimport org.ehcache.CacheManager;\nimport org.ehcache.config.CacheConfiguration;\nimport org.ehcache.config.builders.CacheConfigurationBuilder;\nimport org.ehcache.config.builders.CacheManagerBuilder;\nimport org.ehcache.config.builders.ResourcePoolsBuilder;\nimport org.ehcache.core.statistics.CacheStatistics;\nimport org.ehcache.expiry.Duration;\nimport org.ehcache.expiry.Expirations;\nimport org.ehcache.impl.internal.statistics.DefaultStatisticsService;\n\nimport java.util.concurrent.TimeUnit;\n\npublic class MultiLevelCacheExample {\n    public static void main(String[] args) {\n        CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder()\n                .withCache(&quot;localCache&quot;,\n                        CacheConfigurationBuilder.newCacheConfigurationBuilder(Long.class, String.class,\n                                ResourcePoolsBuilder.heap(100))\n                                .withExpiry(Expirations.timeToLiveExpiration(Duration.of(5, TimeUnit.SECONDS))))\n                .build(true);\n\n        Cache&lt;Long, String&gt; localCache = cacheManager.getCache(&quot;localCache&quot;, Long.class, String.class);\n\n        \/\/ Create a multi-level cache\n        Cache&lt;Long, String&gt; multiLevelCache = CacheDecoratorFactory.multiLevelCache(localCache);\n\n        \/\/ Use the multi-level cache\n        multiLevelCache.put(1L, &quot;Value 1&quot;);\n        String value = multiLevelCache.get(1L);\n        System.out.println(&quot;Value: &quot; + value);\n\n        \/\/ Close the cache manager when done\n        cacheManager.close();\n    }\n}\n<\/code><\/pre>\n<p>\u6545\u969c\u5904\u7406\u548c\u5bb9\u9519\uff1a \u8003\u8651\u7f13\u5b58\u5931\u6548\u3001\u670d\u52a1\u5668\u6545\u969c\u7b49\u60c5\u51b5\u4e0b\u7684\u5bb9\u9519\u673a\u5236\u3002\u4f8b\u5982\uff0c\u5f53\u7f13\u5b58\u5931\u6548\u65f6\uff0c\u80fd\u591f\u4ece\u6570\u636e\u5e93\u4e2d\u83b7\u53d6\u6700\u65b0\u6570\u636e\u3002<\/p>\n<p>\u6027\u80fd\u6d4b\u8bd5\u548c\u4f18\u5316\uff1a \u5728\u5b9e\u9645\u90e8\u7f72\u524d\uff0c\u8fdb\u884c\u6027\u80fd\u6d4b\u8bd5\uff0c\u6a21\u62df\u5b9e\u9645\u7684\u5e76\u53d1\u8bf7\u6c42\u573a\u666f\uff0c\u4ee5\u786e\u4fdd\u7f13\u5b58\u65b9\u6848\u80fd\u591f\u6ee1\u8db3\u4e1a\u52a1\u9700\u6c42\u3002\u6839\u636e\u6027\u80fd\u6d4b\u8bd5\u7ed3\u679c\u8fdb\u884c\u8c03\u4f18\uff0c\u4f8b\u5982\u8c03\u6574\u7f13\u5b58\u5927\u5c0f\u3001\u7f13\u5b58\u7b56\u7565\u7b49\u3002<\/p>\n<p>\u76d1\u63a7\u548c\u65e5\u5fd7\uff1a \u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u8bbe\u7f6e\u76d1\u63a7\u548c\u65e5\u5fd7\u7cfb\u7edf\uff0c\u5b9e\u65f6\u76d1\u6d4b\u7f13\u5b58\u7684\u4f7f\u7528\u60c5\u51b5\u3001\u7f13\u5b58\u547d\u4e2d\u7387\u3001\u7f13\u5b58\u5931\u6548\u7b49\u6307\u6807\uff0c\u4ee5\u53ca\u8bb0\u5f55\u7f13\u5b58\u76f8\u5173\u7684\u65e5\u5fd7\uff0c\u65b9\u4fbf\u6545\u969c\u6392\u67e5\u548c\u6027\u80fd\u4f18\u5316\u3002<\/p>\n<p>\u6301\u7eed\u4f18\u5316\uff1a \u5b9a\u671f\u5ba1\u67e5\u7f13\u5b58\u7b56\u7565\u548c\u914d\u7f6e\uff0c\u6839\u636e\u4e1a\u52a1\u53d1\u5c55\u548c\u6027\u80fd\u9700\u6c42\u7684\u53d8\u5316\uff0c\u8fdb\u884c\u6301\u7eed\u4f18\u5316\u548c\u8c03\u6574\u3002<br \/>\n\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u7f13\u5b58\u65b9\u6848\u7684\u8bbe\u8ba1\u548c\u5b9e\u8df5\u662f\u4e00\u4e2a\u590d\u6742\u7684\u8fc7\u7a0b\uff0c\u9700\u8981\u7ed3\u5408\u5177\u4f53\u4e1a\u52a1\u9700\u6c42\u548c\u6280\u672f\u73af\u5883\u6765\u8fdb\u884c\u3002\u540c\u65f6\uff0c\u4e5f\u8981\u8003\u8651\u7f13\u5b58\u53ef\u80fd\u5e26\u6765\u7684\u4e00\u4e9b\u526f\u4f5c\u7528\uff0c\u6bd4\u5982\u6570\u636e\u4e00\u81f4\u6027\u95ee\u9898\uff0c\u9700\u8981\u5728\u8bbe\u8ba1\u9636\u6bb5\u8fdb\u884c\u5145\u5206\u7684\u8bc4\u4f30\u548c\u89c4\u5212\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u4f7f\u7528\u672c\u5730\u7f13\u5b58 Ehcache \u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5\u662f\u4e00\u4e2a\u9700\u8981\u4ed4\u7ec6\u8003\u8651\u7684\u4efb\u52a1\uff0c\u4ee5\u786e\u4fdd\u7cfb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug<\/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:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u4f7f\u7528\u672c\u5730\u7f13\u5b58 Ehcache \u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5\u662f\u4e00\u4e2a\u9700\u8981\u4ed4\u7ec6\u8003\u8651\u7684\u4efb\u52a1\uff0c\u4ee5\u786e\u4fdd\u7cfb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/\" \/>\n<meta property=\"og:site_name\" content=\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-25T01:34:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-25T01:39:18+00:00\" \/>\n<meta name=\"author\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\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:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/\",\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/\",\"name\":\"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"isPartOf\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\"},\"datePublished\":\"2023-08-25T01:34:13+00:00\",\"dateModified\":\"2023-08-25T01:39:18+00:00\",\"author\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\"},\"breadcrumb\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zhaocunwei.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\",\"url\":\"https:\/\/zhaocunwei.co.uk\/\",\"name\":\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"description\":\"This site shares programming bugs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\",\"name\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"caption\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\"},\"sameAs\":[\"http:\/\/zhaocunwei.co.uk\"],\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","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:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/","og_locale":"zh_CN","og_type":"article","og_title":"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","og_description":"\u524d\u8a00 \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u4f7f\u7528\u672c\u5730\u7f13\u5b58 Ehcache \u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5\u662f\u4e00\u4e2a\u9700\u8981\u4ed4\u7ec6\u8003\u8651\u7684\u4efb\u52a1\uff0c\u4ee5\u786e\u4fdd\u7cfb [&hellip;]","og_url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/","og_site_name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","article_published_time":"2023-08-25T01:34:13+00:00","article_modified_time":"2023-08-25T01:39:18+00:00","author":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/","url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/","name":"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","isPartOf":{"@id":"https:\/\/zhaocunwei.co.uk\/#website"},"datePublished":"2023-08-25T01:34:13+00:00","dateModified":"2023-08-25T01:39:18+00:00","author":{"@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4"},"breadcrumb":{"@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/25\/ehcache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zhaocunwei.co.uk\/"},{"@type":"ListItem","position":2,"name":"\u672c\u5730\u7f13\u5b58 Ehcache \u5728\u767e\u4e07\u5e76\u53d1\u8ba4\u8bc1\u4e1a\u52a1\u4e2d\u7684\u65b9\u6848\u8bbe\u8ba1\u548c\u843d\u5730\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/zhaocunwei.co.uk\/#website","url":"https:\/\/zhaocunwei.co.uk\/","name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"This site shares programming bugs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4","name":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","caption":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46"},"sameAs":["http:\/\/zhaocunwei.co.uk"],"url":"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/"}]}},"_links":{"self":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/799"}],"collection":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=799"}],"version-history":[{"count":1,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/799\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/799\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}