public class DefaultAsCacheStrategy extends java.lang.Object implements AsCacheStrategy
AsCacheStrategy that uses the region cache from the platform.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultAsCacheStrategy.HybrisAsCacheKey |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
AS_CACHE_ENABLED_KEY |
protected static java.lang.String |
AS_CALCULATION_CACHE_ENABLED_KEY |
protected static java.lang.String |
AS_LOAD_CACHE_ENABLED_KEY |
protected static java.lang.String |
AS_MERGE_CACHE_ENABLED_KEY |
| Constructor and Description |
|---|
DefaultAsCacheStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
CacheRegion |
getCacheRegion() |
ConfigurationService |
getConfigurationService() |
java.util.List<java.lang.String> |
getInvalidationTypeCodes() |
protected java.lang.String |
getTenantId() |
TenantService |
getTenantService() |
<V> V |
getWithLoader(AsCacheKey cacheKey,
java.util.function.Function<AsCacheKey,V> valueLoader)
Returns the value in the cache for the given key.
|
protected boolean |
isCacheEnabled(AsCacheScope cacheScope) |
protected void |
loadCacheSettings() |
protected void |
registerInvalidationListener() |
void |
setCacheRegion(CacheRegion cacheRegion) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setInvalidationTypeCodes(java.util.List<java.lang.String> invalidationTypeCodes) |
void |
setTenantService(TenantService tenantService) |
protected static final java.lang.String AS_CACHE_ENABLED_KEY
protected static final java.lang.String AS_LOAD_CACHE_ENABLED_KEY
protected static final java.lang.String AS_CALCULATION_CACHE_ENABLED_KEY
protected static final java.lang.String AS_MERGE_CACHE_ENABLED_KEY
public void afterPropertiesSet()
protected void loadCacheSettings()
protected void registerInvalidationListener()
public <V> V getWithLoader(AsCacheKey cacheKey, java.util.function.Function<AsCacheKey,V> valueLoader)
AsCacheStrategygetWithLoader in interface AsCacheStrategycacheKey - - the cache keyvalueLoader - - function to load valuesprotected java.lang.String getTenantId()
protected boolean isCacheEnabled(AsCacheScope cacheScope)
public TenantService getTenantService()
public void setTenantService(TenantService tenantService)
public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
public CacheRegion getCacheRegion()
public void setCacheRegion(CacheRegion cacheRegion)
public java.util.List<java.lang.String> getInvalidationTypeCodes()
public void setInvalidationTypeCodes(java.util.List<java.lang.String> invalidationTypeCodes)
Copyright © 2017 SAP SE. All Rights Reserved.