<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to implement custom service layer cache using MultiVMPool ?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117233293" />
  <subtitle>How to implement custom service layer cache using MultiVMPool ?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117233293</id>
  <updated>2026-04-06T15:01:46Z</updated>
  <dc:date>2026-04-06T15:01:46Z</dc:date>
  <entry>
    <title>RE: How to implement custom service layer cache using MultiVMPool ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117233636" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117233636</id>
    <updated>2019-09-20T15:02:31Z</updated>
    <published>2019-09-20T15:02:31Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Christoph Rabel:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Here&amp;#39;s the code for WebCachePool:&lt;br /&gt;&lt;a href="https://github.com/liferay/liferay-portal/blob/7.2.x/portal-impl/src/com/liferay/portal/webcache/WebCachePoolImpl.java"&gt;https://github.com/liferay/liferay-portal/blob/7.2.x/portal-impl/src/com/liferay/portal/webcache/WebCachePoolImpl.java&lt;/a&gt;&lt;br /&gt;But honestly speaking, I never found the interface of the WebCachePool very convenient. I usually just use a simpler implementation with put /get. It is often inconvenient to create a WebCacheItem. But that&amp;#39;s just an opinion.&lt;/blockquote&gt;&lt;br /&gt;Thanks Christoph, It worked. We are using WebCacheItem to set different refresh time for each cached item. </summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2019-09-20T15:02:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to implement custom service layer cache using MultiVMPool ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117231647" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117231647</id>
    <updated>2019-09-20T14:53:20Z</updated>
    <published>2019-09-20T14:53:20Z</published>
    <summary type="html">Here&amp;#39;s the code for WebCachePool:&lt;br /&gt;&lt;a href="https://github.com/liferay/liferay-portal/blob/7.2.x/portal-impl/src/com/liferay/portal/webcache/WebCachePoolImpl.java"&gt;https://github.com/liferay/liferay-portal/blob/7.2.x/portal-impl/src/com/liferay/portal/webcache/WebCachePoolImpl.java&lt;/a&gt;&lt;br /&gt;But honestly speaking, I never found the interface of the WebCachePool very convenient. I usually just use a simpler implementation with put /get. It is often inconvenient to create a WebCacheItem. But that&amp;#39;s just an opinion.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-09-20T14:53:20Z</dc:date>
  </entry>
  <entry>
    <title>How to implement custom service layer cache using MultiVMPool ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117233292" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117233292</id>
    <updated>2019-09-20T14:31:33Z</updated>
    <published>2019-09-20T14:31:33Z</published>
    <summary type="html">ref: &lt;u&gt;&lt;a href="https://liferay.dev/blogs/-/blogs/liferay-caching-service-level-caching-using-webcachepool"&gt;https://liferay.dev/blogs/-/blogs/liferay-caching-service-level-caching-using-webcachepool&lt;/a&gt;.   &lt;/u&gt;&lt;br /&gt;&lt;u&gt;​​​​​​​&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;According to this blog,  WebCachePool  internally uses SingleVMPool.  I&amp;#39;m looking for a similar approach which is suitable for Multi-node environment.&lt;br /&gt;Thanks!</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2019-09-20T14:31:33Z</dc:date>
  </entry>
</feed>
