Package de.hybris.platform.cache.impl
Class CacheFactory
- java.lang.Object
-
- de.hybris.platform.cache.impl.CacheFactory
-
public final class CacheFactory extends java.lang.ObjectClass 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 Summary
Fields Modifier and Type Field Description static java.lang.StringCACHE_LEGACY_MODEstatic java.lang.StringREGION_CACHE
-
Constructor Summary
Constructors Constructor Description CacheFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CachecreateCacheInstance(Tenant tenant)CachecreateCacheInstance(Tenant tenant, int cacheSize)CachecreateCacheInstance(Tenant tenant, int cacheSize, boolean forceExclusiveComputation)CachecreateCacheInstance(Tenant slaveTenant, Tenant masterTenant)static booleanisLegacyMode(Tenant tenant)
-
-
-
Field Detail
-
REGION_CACHE
public static final java.lang.String REGION_CACHE
- See Also:
- Constant Field Values
-
CACHE_LEGACY_MODE
public static final java.lang.String CACHE_LEGACY_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isLegacyMode
public static boolean isLegacyMode(Tenant tenant)
-
-