{"id":48775,"date":"2025-07-30T13:18:42","date_gmt":"2025-07-30T05:18:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/48775.html"},"modified":"2025-07-30T13:18:42","modified_gmt":"2025-07-30T05:18:42","slug":"java%e4%b8%adehcache%e5%9b%a0%e4%b8%ba%e5%8f%af%e4%bb%a5%e7%bc%93%e5%ad%98%e5%88%b0%e6%9c%ac%e5%9c%b0%ef%bc%8c%e5%81%87%e5%a6%82%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83%e4%bd%bf%e7%94%a8ehcache%e6%98%af","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/48775.html","title":{"rendered":"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e"},"content":{"rendered":"<p>\u662f\u7684&#xff0c;\u5f53\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528 Ehcache \u7684\u78c1\u76d8\u6301\u4e45\u5316\u529f\u80fd\u65f6&#xff0c;\u786e\u5b9e\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u521b\u5efa\u76f8\u5e94\u7684\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55&#xff0c;\u5e76\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u6709\u6743\u9650\u8bfb\u5199\u8be5\u76ee\u5f55\u3002 \u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bf4\u660e\u548c\u914d\u7f6e\u5efa\u8bae&#xff1a;<\/p>\n<h4>1. \u4e3a\u4ec0\u4e48\u9700\u8981\u521b\u5efa\u7f13\u5b58\u76ee\u5f55&#xff1f;<\/h4>\n<ul>\n<li>Ehcache \u7684\u78c1\u76d8\u6301\u4e45\u5316\u529f\u80fd\u9700\u8981\u5c06\u6570\u636e\u5199\u5165\u5230\u78c1\u76d8\u6587\u4ef6\u4e2d\u3002<\/li>\n<li>\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Ehcache \u4f1a\u5c1d\u8bd5\u5728\u7cfb\u7edf\u4e34\u65f6\u76ee\u5f55&#xff08;\u5982 java.io.tmpdir&#xff09;\u4e0b\u521b\u5efa\u7f13\u5b58\u6587\u4ef6&#xff0c;\u4f46\u8fd9\u901a\u5e38\u4e0d\u662f\u6700\u4f73\u9009\u62e9&#xff0c;\u56e0\u4e3a&#xff1a;\n<ul>\n<li>\u4e34\u65f6\u76ee\u5f55\u53ef\u80fd\u4f1a\u88ab\u7cfb\u7edf\u6e05\u7406<\/li>\n<li>\u4e34\u65f6\u76ee\u5f55\u7a7a\u95f4\u53ef\u80fd\u4e0d\u8db3<\/li>\n<li>\u6743\u9650\u53ef\u80fd\u53d7\u9650<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>2. \u5982\u4f55\u914d\u7f6e\u7f13\u5b58\u76ee\u5f55&#xff1f;<\/h4>\n<h5>\u65b9\u6cd5\u4e00&#xff1a;\u901a\u8fc7 Ehcache \u914d\u7f6e\u6587\u4ef6\u6307\u5b9a<\/h5>\n<p>\u5728 Ehcache 2.x \u4e2d&#xff0c;\u53ef\u4ee5\u5728 ehcache.xml \u6587\u4ef6\u4e2d\u914d\u7f6e\u78c1\u76d8\u5b58\u50a8\u8def\u5f84&#xff1a;<\/p>\n<p>&lt;ehcache&gt;<br \/>\n    &lt;!&#8211; \u6307\u5b9a\u78c1\u76d8\u5b58\u50a8\u8def\u5f84 &#8211;&gt;<br \/>\n    &lt;diskStore path&#061;&#034;\/path\/to\/your\/cache\/directory&#034;\/&gt;<\/p>\n<p>    &lt;cache name&#061;&#034;myCache&#034;<br \/>\n           maxEntriesLocalHeap&#061;&#034;1000&#034;<br \/>\n           eternal&#061;&#034;false&#034;<br \/>\n           timeToIdleSeconds&#061;&#034;300&#034;<br \/>\n           timeToLiveSeconds&#061;&#034;600&#034;<br \/>\n           diskPersistent&#061;&#034;true&#034;<br \/>\n           diskExpiryThreadIntervalSeconds&#061;&#034;300&#034;&gt;<br \/>\n    &lt;\/cache&gt;<br \/>\n&lt;\/ehcache&gt;<\/p>\n<h5>\u65b9\u6cd5\u4e8c&#xff1a;\u901a\u8fc7 Java \u4ee3\u7801\u914d\u7f6e&#xff08;Ehcache 2.x&#xff09;<\/h5>\n<p>Configuration config &#061; new Configuration();<br \/>\nconfig.diskStore(new DiskStoreConfiguration().path(&#034;\/path\/to\/your\/cache\/directory&#034;));<br \/>\n\/\/ \u7136\u540e\u521b\u5efa CacheManager \u548c Cache<\/p>\n<h5>\u65b9\u6cd5\u4e09&#xff1a;Ehcache 3.x \u7684\u914d\u7f6e\u65b9\u5f0f&#xff08;\u7f16\u7a0b\u5f0f&#xff09;<\/h5>\n<p>PersistentCacheManager cacheManager &#061; CacheManagerBuilder.newCacheManagerBuilder()<br \/>\n    .with(CacheManagerBuilder.persistence(new File(&#034;\/path\/to\/your\/cache\/directory&#034;)))<br \/>\n    .withCache(&#034;myCache&#034;,<br \/>\n        CacheConfigurationBuilder.newCacheConfigurationBuilder(Long.class, String.class,<br \/>\n            ResourcePoolsBuilder.newResourcePoolsBuilder()<br \/>\n                .heap(100, EntryUnit.ENTRIES)<br \/>\n                .disk(100, MemoryUnit.MB, true)) \/\/ \u542f\u7528\u78c1\u76d8\u6301\u4e45\u5316<br \/>\n    ).build(true);<\/p>\n<h4>3. \u751f\u4ea7\u73af\u5883\u6ce8\u610f\u4e8b\u9879<\/h4>\n<h5>(1) \u76ee\u5f55\u6743\u9650<\/h5>\n<ul>\n<li>\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u7528\u6237\u5bf9\u8be5\u76ee\u5f55\u6709\u8bfb\u5199\u6743\u9650<\/li>\n<li>\u793a\u4f8b&#xff08;Linux&#xff09;&#xff1a;\n<p>mkdir \/data\/myapp\/ehcachechown appuser:appgroup \/data\/myapp\/ehcachechmod 750 \/data\/myapp\/ehcache<\/p>\n<\/li>\n<\/ul>\n<h5>(2) \u76ee\u5f55\u89c4\u5212<\/h5>\n<ul>\n<li>\u5efa\u8bae\u4f7f\u7528\u4e13\u7528\u78c1\u76d8\u6216\u5206\u533a<\/li>\n<li>\u907f\u514d\u4f7f\u7528 \/tmp \u7b49\u4e34\u65f6\u76ee\u5f55<\/li>\n<li>\u793a\u4f8b\u8def\u5f84&#xff1a;\n<ul>\n<li>Linux: \/data\/myapp\/ehcache<\/li>\n<li>Windows: D:\\\\app\\\\ehcache<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>(3) \u78c1\u76d8\u7a7a\u95f4\u76d1\u63a7<\/h5>\n<ul>\n<li>\u76d1\u63a7\u7f13\u5b58\u76ee\u5f55\u6240\u5728\u78c1\u76d8\u7684\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5<\/li>\n<li>\u8bbe\u7f6e\u5408\u7406\u7684\u78c1\u76d8\u914d\u989d&#xff08;\u901a\u8fc7 Ehcache \u7684 maxBytesLocalDisk \u914d\u7f6e&#xff09;<\/li>\n<\/ul>\n<h5>(4) \u6e05\u7406\u7b56\u7565<\/h5>\n<ul>\n<li>\u914d\u7f6e\u5408\u7406\u7684\u8fc7\u671f\u65f6\u95f4&#xff08;TTL\/TTI&#xff09;<\/li>\n<li>\u914d\u7f6e\u78c1\u76d8\u8fc7\u671f\u7ebf\u7a0b\u8fd0\u884c\u95f4\u9694&#xff08;diskExpiryThreadIntervalSeconds&#xff09;<\/li>\n<\/ul>\n<h4>4. \u914d\u7f6e\u793a\u4f8b&#xff08;Ehcache 2.x \u751f\u4ea7\u914d\u7f6e&#xff09;<\/h4>\n<p>&lt;ehcache xmlns:xsi&#061;&#034;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#034;<br \/>\n         xsi:noNamespaceSchemaLocation&#061;&#034;http:\/\/ehcache.org\/ehcache.xsd&#034;<br \/>\n         updateCheck&#061;&#034;false&#034; monitoring&#061;&#034;autodetect&#034;&gt;<br \/>\n    &lt;!&#8211; \u751f\u4ea7\u73af\u5883\u4e13\u7528\u7f13\u5b58\u76ee\u5f55 &#8211;&gt;<br \/>\n    &lt;diskStore path&#061;&#034;\/data\/myapp\/ehcache&#034;\/&gt;<\/p>\n<p>    &lt;!&#8211; \u9ed8\u8ba4\u7f13\u5b58\u8bbe\u7f6e &#8211;&gt;<br \/>\n    &lt;defaultCache<br \/>\n        maxElementsInMemory&#061;&#034;10000&#034;<br \/>\n        eternal&#061;&#034;false&#034;<br \/>\n        timeToIdleSeconds&#061;&#034;300&#034;<br \/>\n        timeToLiveSeconds&#061;&#034;600&#034;<br \/>\n        diskPersistent&#061;&#034;true&#034;<br \/>\n        diskExpiryThreadIntervalSeconds&#061;&#034;300&#034;<br \/>\n        maxElementsOnDisk&#061;&#034;10000000&#034;<br \/>\n        memoryStoreEvictionPolicy&#061;&#034;LRU&#034;&gt;<br \/>\n    &lt;\/defaultCache&gt;<\/p>\n<p>    &lt;!&#8211; \u81ea\u5b9a\u4e49\u7f13\u5b58 &#8211;&gt;<br \/>\n    &lt;cache name&#061;&#034;productCache&#034;<br \/>\n           maxElementsInMemory&#061;&#034;5000&#034;<br \/>\n           eternal&#061;&#034;false&#034;<br \/>\n           timeToIdleSeconds&#061;&#034;3600&#034;<br \/>\n           timeToLiveSeconds&#061;&#034;7200&#034;<br \/>\n           diskPersistent&#061;&#034;true&#034;<br \/>\n           diskExpiryThreadIntervalSeconds&#061;&#034;600&#034;<br \/>\n           maxElementsOnDisk&#061;&#034;100000&#034;&gt;<br \/>\n    &lt;\/cache&gt;<br \/>\n&lt;\/ehcache&gt;<\/p>\n<h4>5. \u670d\u52a1\u5668\u51c6\u5907\u6b65\u9aa4<\/h4>\n<p>\u90e8\u7f72\u524d\u9700\u8981\u6267\u884c\u7684\u64cd\u4f5c&#xff1a;<\/p>\n<li>\u521b\u5efa\u76ee\u5f55&#xff1a;\n<p>mkdir -p \/data\/myapp\/ehcache<\/p>\n<\/li>\n<li>\u8bbe\u7f6e\u6743\u9650&#xff08;\u6839\u636e\u5b9e\u9645\u8fd0\u884c\u7528\u6237\u8c03\u6574&#xff09;&#xff1a;\n<p>chown tomcat:tomcat \/data\/myapp\/ehcachechmod 750 \/data\/myapp\/ehcache<\/p>\n<\/li>\n<li>\u5728\u5e94\u7528\u914d\u7f6e\u4e2d\u786e\u4fdd Ehcache \u914d\u7f6e\u6587\u4ef6\u6307\u5411\u8be5\u76ee\u5f55<\/li>\n<li>\u76d1\u63a7\u78c1\u76d8\u7a7a\u95f4&#xff08;\u6dfb\u52a0\u5230\u76d1\u63a7\u7cfb\u7edf&#xff09;<\/li>\n<h4>6. \u9a8c\u8bc1\u914d\u7f6e<\/h4>\n<p>\u542f\u52a8\u5e94\u7528\u540e\u68c0\u67e5&#xff1a;<\/p>\n<ul>\n<li>\u76ee\u5f55\u4e2d\u662f\u5426\u751f\u6210 .data \u6587\u4ef6&#xff08;Ehcache 2.x&#xff09;<\/li>\n<li>\u65e5\u5fd7\u4e2d\u662f\u5426\u6709\u6743\u9650\u9519\u8bef<\/li>\n<li>\u901a\u8fc7 JMX \u6216 Ehcache \u76d1\u63a7\u754c\u9762\u786e\u8ba4\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5<\/li>\n<\/ul>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528 Ehcache \u78c1\u76d8\u6301\u4e45\u5316\u529f\u80fd\u65f6&#xff1a;<\/p>\n<li>\u5fc5\u987b\u4e13\u95e8\u521b\u5efa\u7f13\u5b58\u76ee\u5f55<\/li>\n<li>\u5fc5\u987b\u914d\u7f6e\u5e94\u7528\u6743\u9650<\/li>\n<li>\u5efa\u8bae\u76d1\u63a7\u78c1\u76d8\u7a7a\u95f4<\/li>\n<li>\u5efa\u8bae\u914d\u7f6e\u5408\u7406\u7684\u7f13\u5b58\u6dd8\u6c70\u7b56\u7565 \u901a\u8fc7\u5408\u7406\u914d\u7f6e&#xff0c;Ehcache \u7684\u78c1\u76d8\u6301\u4e45\u5316\u529f\u80fd\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u7f13\u5b58\u5bb9\u91cf\u548c\u53ef\u9760\u6027&#xff0c;\u7279\u522b\u9002\u5408\u7f13\u5b58\u91cd\u8981\u4e14\u4e0d\u5e38\u53d8\u66f4\u7684\u6570\u636e\u3002 Ehcache \u751f\u4ea7\u73af\u5883\u78c1\u76d8\u7f13\u5b58\u914d\u7f6e\u6307\u5357 \u662f\u7684&#xff0c;\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528 Ehcache \u7684\u78c1\u76d8\u6301\u4e45\u5316\u529f\u80fd\u65f6&#xff0c;\u5fc5\u987b\u5728\u670d\u52a1\u5668\u4e0a\u521b\u5efa\u4e13\u95e8\u7684\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55&#xff0c;\u5e76\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u6709\u6b63\u786e\u7684\u8bfb\u5199\u6743\u9650\u3002<\/li>\n<p>\u8be6\u7ec6\u914d\u7f6e\u6b65\u9aa4<\/p>\n<li>\u521b\u5efa\u7f13\u5b58\u76ee\u5f55 \u5728\u751f\u4ea7\u670d\u52a1\u5668\u4e0a\u521b\u5efa\u4e13\u7528\u76ee\u5f55&#xff08;\u4ee5 Linux \u4e3a\u4f8b&#xff09;&#xff1a;<\/li>\n<p>bash \u590d\u5236 \u4e0b\u8f7d<\/p>\n<h2>\u521b\u5efa\u7f13\u5b58\u76ee\u5f55<\/h2>\n<p>sudo mkdir -p \/data\/myapp\/ehcache<\/p>\n<h2>\u8bbe\u7f6e\u6743\u9650&#xff08;\u6839\u636e\u5e94\u7528\u8fd0\u884c\u7528\u6237\u8c03\u6574&#xff09;<\/h2>\n<p>sudo chown appuser:appgroup \/data\/myapp\/ehcache sudo chmod 750 \/data\/myapp\/ehcache<\/p>\n<p>2. Ehcache 2.x \u914d\u7f6e\u793a\u4f8b \u5728 ehcache.xml \u4e2d\u914d\u7f6e\u78c1\u76d8\u5b58\u50a8\u8def\u5f84&#xff1a;<\/p>\n<p>xml \u590d\u5236 \u4e0b\u8f7d \u8fd0\u884c<\/p>\n<p>&lt;!&#8211; \u6307\u5b9a\u78c1\u76d8\u5b58\u50a8\u8def\u5f84 &#8211;&gt;<br \/>\n&lt;diskStore path&#061;&#034;\/data\/myapp\/ehcache&#034;\/&gt;<\/p>\n<p>&lt;!&#8211; \u9ed8\u8ba4\u7f13\u5b58\u8bbe\u7f6e &#8211;&gt;<br \/>\n&lt;defaultCache<br \/>\n    maxElementsInMemory&#061;&#034;10000&#034;<br \/>\n    eternal&#061;&#034;false&#034;<br \/>\n    timeToIdleSeconds&#061;&#034;300&#034;<br \/>\n    timeToLiveSeconds&#061;&#034;600&#034;<br \/>\n    diskPersistent&#061;&#034;true&#034;<br \/>\n    diskExpiryThreadIntervalSeconds&#061;&#034;300&#034;<br \/>\n    memoryStoreEvictionPolicy&#061;&#034;LRU&#034;&gt;<br \/>\n&lt;\/defaultCache&gt;<\/p>\n<p>&lt;!&#8211; \u5546\u54c1\u7f13\u5b58 &#8211;&gt;<br \/>\n&lt;cache name&#061;&#034;productCache&#034;<br \/>\n       maxElementsInMemory&#061;&#034;5000&#034;<br \/>\n       eternal&#061;&#034;false&#034;<br \/>\n       timeToIdleSeconds&#061;&#034;3600&#034;<br \/>\n       timeToLiveSeconds&#061;&#034;7200&#034;<br \/>\n       diskPersistent&#061;&#034;true&#034;<br \/>\n       diskSpoolBufferSizeMB&#061;&#034;20&#034;<br \/>\n       maxElementsOnDisk&#061;&#034;100000&#034;<br \/>\n       diskExpiryThreadIntervalSeconds&#061;&#034;600&#034;&gt;<br \/>\n&lt;\/cache&gt;<\/p>\n<p>3. Ehcache 3.x \u914d\u7f6e\u793a\u4f8b&#xff08;Java Config&#xff09; java \u590d\u5236 \u4e0b\u8f7d import org.ehcache.config.CacheConfiguration; import org.ehcache.config.builders.CacheConfigurationBuilder; import org.ehcache.config.builders.CacheManagerBuilder; import org.ehcache.config.builders.ResourcePoolsBuilder; import org.ehcache.config.units.MemoryUnit; import org.ehcache.impl.config.persistence.CacheManagerPersistenceConfiguration;<\/p>\n<p>import java.io.File;<\/p>\n<p>public class Ehcache3Config {<\/p>\n<p>public static void main(String[] args) {<br \/>\n    \/\/ 1. \u5b9a\u4e49\u7f13\u5b58\u76ee\u5f55<br \/>\n    File cacheDirectory &#061; new File(&#034;\/data\/myapp\/ehcache&#034;);<\/p>\n<p>    \/\/ 2. \u521b\u5efa\u7f13\u5b58\u7ba1\u7406\u5668\u914d\u7f6e<br \/>\n    CacheManagerBuilder&lt;PersistentCacheManager&gt; managerBuilder &#061; CacheManagerBuilder.newCacheManagerBuilder()<br \/>\n            .with(new CacheManagerPersistenceConfiguration(cacheDirectory));<\/p>\n<p>    \/\/ 3. \u914d\u7f6e\u5177\u4f53\u7f13\u5b58<br \/>\n    ResourcePoolsBuilder resourcePools &#061; ResourcePoolsBuilder.newResourcePoolsBuilder()<br \/>\n            .heap(1000, EntryUnit.ENTRIES) \/\/ \u5806\u5185\u7f13\u5b58<br \/>\n            .disk(100, MemoryUnit.MB, true); \/\/ \u78c1\u76d8\u6301\u4e45\u5316<\/p>\n<p>    CacheConfiguration&lt;Long, Product&gt; productConfig &#061; CacheConfigurationBuilder<br \/>\n            .newCacheConfigurationBuilder(Long.class, Product.class, resourcePools)<br \/>\n            .withExpiry(ExpiryPolicyBuilder.timeToLiveExpiration(Duration.ofHours(2)))<br \/>\n            .build();<\/p>\n<p>    \/\/ 4. \u6784\u5efa\u7f13\u5b58\u7ba1\u7406\u5668<br \/>\n    PersistentCacheManager cacheManager &#061; managerBuilder<br \/>\n            .withCache(&#034;productCache&#034;, productConfig)<br \/>\n            .build(true);<\/p>\n<p>    \/\/ \u4f7f\u7528\u7f13\u5b58&#8230;<br \/>\n}<\/p>\n<p>} \u751f\u4ea7\u73af\u5883\u5173\u952e\u8003\u8651\u56e0\u7d20<\/p>\n<li>\u76ee\u5f55\u89c4\u5212\u6700\u4f73\u5b9e\u8df5 \u8003\u8651\u56e0\u7d20 \u63a8\u8350\u65b9\u6848 \u4e0d\u63a8\u8350\u65b9\u6848 \u4f4d\u7f6e \u4e13\u7528\u6570\u636e\u76d8 (\/data\/&#8230;) \u7cfb\u7edf\u76d8 (\/var\/tmp) \u6743\u9650 \u5e94\u7528\u4e13\u5c5e\u7528\u6237\u6743\u9650 root \u6743\u9650\u6216\u5168\u5c40\u53ef\u5199 \u7a7a\u95f4 \u72ec\u7acb\u5206\u533a&#xff0c;\u9884\u755920%\u7a7a\u95f4 \u4e0e\u7cfb\u7edf\u5171\u4eab\u5206\u533a \u5907\u4efd \u6392\u9664\u5728\u5e38\u89c4\u5907\u4efd\u5916 \u5305\u542b\u5728\u7cfb\u7edf\u5907\u4efd\u4e2d<\/li>\n<li>\u78c1\u76d8\u7f13\u5b58\u6027\u80fd\u4f18\u5316\u00a0<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"798\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051839-6889ab2f45f88.png\" width=\"3282\" \/><\/p>\n<p>\u4f18\u5316\u5efa\u8bae&#xff1a;<\/p>\n<p>\u8bbe\u7f6e\u5408\u7406\u7684\u5806\u5185\u7f13\u5b58&#xff1a;\u51cf\u5c11\u78c1\u76d8\u8bbf\u95ee\u9891\u7387<\/p>\n<p>\u4f7f\u7528SSD\u5b58\u50a8&#xff1a;\u63d0\u5347\u78c1\u76d8I\/O\u6027\u80fd<\/p>\n<p>\u914d\u7f6e\u78c1\u76d8\u7f13\u51b2\u6c60&#xff1a;<\/p>\n<p>xml \u590d\u5236 \u4e0b\u8f7d \u8fd0\u884c<\/p>\n<\/p>\n<p>&lt;cache &#8230; diskSpoolBufferSizeMB&#061;&#034;30&#034; \/&gt; \u5b9a\u671f\u6e05\u7406\u8fc7\u671f\u6570\u636e&#xff1a;<\/p>\n<p>xml \u590d\u5236 \u4e0b\u8f7d \u8fd0\u884c 300 3. \u76d1\u63a7\u4e0e\u7ef4\u62a4 \u5173\u952e\u76d1\u63a7\u6307\u6807&#xff1a;<\/p>\n<p>\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u7387<\/p>\n<p>\u78c1\u76d8I\/O\u7b49\u5f85\u65f6\u95f4<\/p>\n<p>\u7f13\u5b58\u547d\u4e2d\u7387&#xff08;\u5185\u5b58 vs \u78c1\u76d8&#xff09;<\/p>\n<p>\u7f13\u5b58\u9a71\u9010\u7387<\/p>\n<p>\u65e5\u5fd7\u914d\u7f6e\u793a\u4f8b&#xff08;logback.xml&#xff09;&#xff1a;<\/p>\n<p>xml \u590d\u5236 \u4e0b\u8f7d \u8fd0\u884c<\/p>\n<p>4. \u707e\u96be\u6062\u590d\u7b56\u7565 \u7f13\u5b58\u76ee\u5f55\u635f\u574f\u5904\u7406&#xff1a;<\/p>\n<p>bash \u590d\u5236 \u4e0b\u8f7d<\/p>\n<h2>\u505c\u6b62\u5e94\u7528<\/h2>\n<p>systemctl stop myapp<\/p>\n<h2>\u5907\u4efd\u5f53\u524d\u7f13\u5b58<\/h2>\n<p>mv \/data\/myapp\/ehcache \/data\/myapp\/ehcache_bak_$(date &#043;%F)<\/p>\n<h2>\u91cd\u5efa\u76ee\u5f55<\/h2>\n<p>mkdir \/data\/myapp\/ehcache chown appuser:appgroup \/data\/myapp\/ehcache<\/p>\n<h2>\u91cd\u542f\u5e94\u7528<\/h2>\n<p>systemctl start myapp \u7f13\u5b58\u9884\u70ed\u811a\u672c&#xff08;Spring Boot \u793a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>java \u590d\u5236 \u4e0b\u8f7d &#064;Component public class CacheWarmup implements ApplicationRunner {<\/p>\n<p>&#064;Autowired<br \/>\nprivate ProductService productService;<\/p>\n<p>&#064;Override<br \/>\npublic void run(ApplicationArguments args) {<br \/>\n    List&lt;Long&gt; hotProductIds &#061; \/\/ \u4ece\u6570\u636e\u5e93\u83b7\u53d6\u70ed\u95e8\u5546\u54c1ID<br \/>\n    hotProductIds.parallelStream()<br \/>\n        .forEach(productService::getProductById);<br \/>\n}<\/p>\n<p>} 5. \u5b89\u5168\u914d\u7f6e \u76ee\u5f55\u6743\u9650\u52a0\u56fa&#xff1a;<\/p>\n<p>bash \u590d\u5236 \u4e0b\u8f7d<\/p>\n<h2>\u7981\u6b62\u5176\u4ed6\u7528\u6237\u8bbf\u95ee<\/h2>\n<p>chmod 750 \/data\/myapp\/ehcache<\/p>\n<h2>\u8bbe\u7f6e\u7c98\u6ede\u4f4d&#xff08;\u9632\u6b62\u6587\u4ef6\u88ab\u8bef\u5220&#xff09;<\/h2>\n<p>chmod &#043;t \/data\/myapp\/ehcache \u52a0\u5bc6\u654f\u611f\u6570\u636e&#xff1a;<\/p>\n<p>java \u590d\u5236 \u4e0b\u8f7d \/\/ Ehcache 3.x \u6570\u636e\u52a0\u5bc6 CacheConfiguration&lt;Long, Product&gt; secureConfig &#061; CacheConfigurationBuilder .newCacheConfigurationBuilder(Long.class, Product.class, resourcePools) .withValueSerializer(EncryptedSerializer.class) .build(); \u5bb9\u5668\u5316\u73af\u5883\u7279\u6b8a\u8003\u8651 \u5728 Docker\/Kubernetes \u73af\u5883\u4e2d&#xff1a;<\/p>\n<p>\u4f7f\u7528\u6301\u4e45\u5316\u5377&#xff08;PV&#xff09;&#xff1a;<\/p>\n<p>yaml \u590d\u5236 \u4e0b\u8f7d<\/p>\n<h2>Kubernetes \u90e8\u7f72\u7247\u6bb5<\/h2>\n<p>volumeMounts:<\/p>\n<ul>\n<li>name: ehcache-volume mountPath: \/data\/myapp\/ehcache<\/li>\n<\/ul>\n<p>volumes:<\/p>\n<ul>\n<li>name: ehcache-volume persistentVolumeClaim: claimName: ehcache-pvc \u521d\u59cb\u5316\u5bb9\u5668\u51c6\u5907\u76ee\u5f55&#xff1a;<\/li>\n<\/ul>\n<p>yaml \u590d\u5236 \u4e0b\u8f7d initContainers:<\/p>\n<ul>\n<li>name: init-cache-dir image: busybox command: [&#034;sh&#034;, &#034;-c&#034;, &#034;mkdir -p \/data\/myapp\/ehcache &amp;&amp; chown 1000:1000 \/data\/myapp\/ehcache&#034;] volumeMounts:\n<ul>\n<li>name: ehcache-volume mountPath: \/data\/myapp\/ehcache \u603b\u7ed3\u5efa\u8bae \u5fc5\u987b\u521b\u5efa\u4e13\u7528\u76ee\u5f55&#xff1a;\u907f\u514d\u4f7f\u7528\u4e34\u65f6\u76ee\u5f55<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u6743\u9650\u6700\u5c0f\u5316\u539f\u5219&#xff1a;\u5e94\u7528\u7528\u6237\u4e13\u5c5e\u6743\u9650<\/p>\n<p>\u5bb9\u91cf\u76d1\u63a7&#xff1a;\u9632\u6b62\u78c1\u76d8\u5199\u6ee1\u5bfc\u81f4\u670d\u52a1\u6545\u969c<\/p>\n<p>\u6027\u80fd\u9694\u79bb&#xff1a;SSD \u4f18\u4e8e HDD&#xff0c;\u72ec\u7acb\u78c1\u76d8\u4f18\u4e8e\u5171\u4eab\u78c1\u76d8<\/p>\n<p>\u5b9a\u671f\u7ef4\u62a4&#xff1a;\u76d1\u63a7\u65e5\u5fd7&#xff0c;\u6e05\u7406\u8fc7\u671f\u6570\u636e<\/p>\n<p>\u707e\u96be\u6062\u590d&#xff1a;\u51c6\u5907\u7f13\u5b58\u91cd\u5efa\u548c\u9884\u70ed\u65b9\u6848<\/p>\n<p>\u6309\u7167\u8fd9\u4e9b\u5b9e\u8df5\u90e8\u7f72 Ehcache \u78c1\u76d8\u7f13\u5b58&#xff0c;\u53ef\u4ee5\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u83b7\u5f97\u5b89\u5168\u53ef\u9760\u7684\u6301\u4e45\u5316\u7f13\u5b58\u80fd\u529b&#xff0c;\u540c\u65f6\u4fdd\u6301\u9ad8\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb997\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf12\u6b21\u3002java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e_ehcache\u7f13\u5b58\u76ee\u5f55<\/p>\n","protected":false},"author":2,"featured_media":48774,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,1271],"topic":[],"class_list":["post-48775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-springboot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e - \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\/48775.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb997\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf12\u6b21\u3002java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e_ehcache\u7f13\u5b58\u76ee\u5f55\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/48775.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T05:18:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051839-6889ab2f45f88.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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48775.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/48775.html\",\"name\":\"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T05:18:42+00:00\",\"dateModified\":\"2025-07-30T05:18:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/48775.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/48775.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48775.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e\"}]},{\"@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":"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e - \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\/48775.html","og_locale":"zh_CN","og_type":"article","og_title":"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb997\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf12\u6b21\u3002java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e_ehcache\u7f13\u5b58\u76ee\u5f55","og_url":"https:\/\/www.wsisp.com\/helps\/48775.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T05:18:42+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730051839-6889ab2f45f88.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/48775.html","url":"https:\/\/www.wsisp.com\/helps\/48775.html","name":"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T05:18:42+00:00","dateModified":"2025-07-30T05:18:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/48775.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/48775.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/48775.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"java\u4e2dehcache\u56e0\u4e3a\u53ef\u4ee5\u7f13\u5b58\u5230\u672c\u5730\uff0c\u5047\u5982\u751f\u4ea7\u73af\u5883\u4f7f\u7528ehcache\u662f\u4e0d\u662f\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u521b\u5efa\u7f13\u5b58\u6587\u4ef6\u5939\u76ee\u5f55\u4ee5\u5b58\u50a8ehcache\u7f13\u5b58\u7684\u6570\u636e"}]},{"@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\/48775","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=48775"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/48775\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/48774"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=48775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=48775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=48775"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=48775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}