Class CacheFactory

java.lang.Object
de.hybris.platform.cache.impl.CacheFactory

public final class CacheFactory extends Object
Class has all Cache instantiation methods.
On the base of cache.legacymode from advanced properties it creates regioncache or old cache (cache2) instances.

This class is used also to bootstrap CacheController. Existing legacy code uses static class-level constructs to bootstrap Cache, so it's impossible to use Spring dependency injection directly.

  • Field Details

  • Constructor Details

    • CacheFactory

      public CacheFactory()
  • Method Details

    • createCacheInstance

      public Cache createCacheInstance(Tenant tenant)
    • isLegacyMode

      public static boolean isLegacyMode(Tenant tenant)
    • createCacheInstance

      public Cache createCacheInstance(Tenant slaveTenant, Tenant masterTenant)
    • createCacheInstance

      public Cache createCacheInstance(Tenant tenant, int cacheSize)
    • createCacheInstance

      public Cache createCacheInstance(Tenant tenant, int cacheSize, boolean forceExclusiveComputation)