Class EhCacheUtil

  • All Implemented Interfaces:
    EhCacheHelper

    public class EhCacheUtil
    extends EhCacheUtilBase
    A helper class designed to simplify the work with EhCache library. See the doc for more details.

    Typical usage:

       public MyBean {
         private Cache myCache;
         public MyBean(@NotNull EhCacheUtil cacheUtil) {
           myCache = cacheUtil.createCache("my-cache-name");
         }
         ...
       }
     

    Note: if your cache is not eternal (in ehcache configuration), it will be cleaned up if requested from admin interface or API. Default cache not eternal.

    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)