public class DefaultCachingStrategy extends Object implements CachingStrategy
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultCachingStrategy.SessionCacheContainer |
| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_CACHE_ATTRIBUTE |
| Constructor and Description |
|---|
DefaultCachingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
List<PromotionResult> |
get(String code) |
protected Map<String,List<PromotionResult>> |
getCache() |
protected SessionService |
getSessionService() |
void |
put(String code,
List<PromotionResult> results) |
void |
remove(String code) |
void |
setSessionService(SessionService sessionService) |
public static final String SESSION_CACHE_ATTRIBUTE
public void put(String code, List<PromotionResult> results)
put in interface CachingStrategypublic List<PromotionResult> get(String code)
get in interface CachingStrategypublic void remove(String code)
remove in interface CachingStrategyprotected Map<String,List<PromotionResult>> getCache()
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2017 SAP SE. All Rights Reserved.