Class EhcacheConfigurers.BasicEhcacheConfigurer

java.lang.Object
com.broadleafcommerce.common.extension.cache.ehcache.EhcacheConfigurers.BasicEhcacheConfigurer
Enclosing class:
EhcacheConfigurers

public static class EhcacheConfigurers.BasicEhcacheConfigurer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    basicInitialize(org.springframework.cache.jcache.JCacheCacheManager cacheManager, String cacheName, int ttlSeconds, int heapEntries, int offheapMb)
    Initializes a standard cache configuration with an off-heap tier and registers it using custom heap and off-heap sizes.
    protected Class<? extends org.ehcache.spi.serialization.Serializer<Object>>
     
    void
    keysInitialize(org.springframework.cache.jcache.JCacheCacheManager cacheManager, String cacheName, int heapEntries, int offheapMb)
    Initializes a "Keys" cache region used by CacheStateManager for eviction tracking.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasicEhcacheConfigurer

      public BasicEhcacheConfigurer()
  • Method Details

    • basicInitialize

      public void basicInitialize(org.springframework.cache.jcache.JCacheCacheManager cacheManager, String cacheName, int ttlSeconds, int heapEntries, int offheapMb)
      Initializes a standard cache configuration with an off-heap tier and registers it using custom heap and off-heap sizes.
    • keysInitialize

      public void keysInitialize(org.springframework.cache.jcache.JCacheCacheManager cacheManager, String cacheName, int heapEntries, int offheapMb)
      Initializes a "Keys" cache region used by CacheStateManager for eviction tracking. These regions are configured with eternal expiry.
    • getSerializerClass

      protected Class<? extends org.ehcache.spi.serialization.Serializer<Object>> getSerializerClass()