public class CacheLookup extends Object implements Lookup, CacheLookups
CONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME
Constructor and Description |
---|
CacheLookup() |
Modifier and Type | Method and Description |
---|---|
org.springframework.cache.Cache |
getCache()
Set using Spring SPEL like #{cacheManager.getCache('myCacheName')}
|
org.apache.commons.collections.Transformer |
getCacheKeyTransformer()
If not null will extract the key from the input; if null will use the
Object.hashCode() |
org.apache.commons.collections.Transformer |
getTransformer()
Core Transformer that will fetch the data based on input
|
void |
setCache(org.springframework.cache.Cache cache)
Set using Spring SPEL like #{cacheManager.getCache('myCacheName')}
|
void |
setCacheKeyTransformer(org.apache.commons.collections.Transformer cacheKeyTransformer)
If not null will extract the key from the input; if null will use the
Object.hashCode() |
void |
setTransformer(org.apache.commons.collections.Transformer transformer)
Core Transformer that will fetch the data based on input
|
Object |
transform(Object in)
For a Given String, Lookup a value for it
|
public Object transform(Object in)
Lookup
public org.apache.commons.collections.Transformer getTransformer()
public void setTransformer(org.apache.commons.collections.Transformer transformer)
public org.springframework.cache.Cache getCache()
public void setCache(org.springframework.cache.Cache cache)
public org.apache.commons.collections.Transformer getCacheKeyTransformer()
Object.hashCode()
public void setCacheKeyTransformer(org.apache.commons.collections.Transformer cacheKeyTransformer)
Object.hashCode()
Copyright © 2018. All rights reserved.