Authored by hugufei

fix CacheType

... ... @@ -27,7 +27,7 @@ public @interface SearchCacheAble {
/**
* 缓存类型,默认search_redis
*
*
* @return
*/
public CacheType cacheType() default CacheType.SEARCH_REDIS;
... ...
... ... @@ -35,7 +35,7 @@ class DefaultProductListService {
* @return
*/
@ProductListWithSknRetention
@SearchCacheAble(cacheName = "PRODUCT_LIST_DEFAULT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10)
@SearchCacheAble(cacheName = "PRODUCT_LIST_DEFAULT_PERSIONAL", cacheInMinute = 10)
public SearchApiResult productListForDefaultPersional(Map<String, String> paramMap) {
try {
// 1) 构建SearchParam
... ... @@ -61,7 +61,7 @@ class DefaultProductListService {
* @return
*/
@ProductListWithSknRetention
@SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"})
@SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL",cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"})
public SearchApiResult productListNotPersional(Map<String, String> paramMap) {
try {
// 1) 构建SearchParam
... ...
... ... @@ -31,7 +31,7 @@ class FuzzySceneProductListService{
private ProductListHelper productListHelper;
@ProductListWithSknRetention
@SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10)
@SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_PERSIONAL", cacheInMinute = 10)
public SearchApiResult fuzzyProductListPersional(Map<String, String> paramMap) {
try {
// 1)定义页面为模糊搜索的页面
... ... @@ -53,7 +53,7 @@ class FuzzySceneProductListService{
}
@ProductListWithSknRetention
@SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"})
@SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_NOT_PERSIONAL",cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"})
public SearchApiResult fuzzyProductListNotPersional(Map<String, String> paramMap) {
try {
// 1)定义页面为模糊搜索的页面
... ...
... ... @@ -65,7 +65,7 @@ public class WebNewShelveService implements ApplicationEventPublisherAware {
this.publisher = applicationEventPublisher;
}
@SearchCacheAble(cacheName = "WEB_NEW_SHELVE", cacheInMinute = 15, cacheType = CacheType.SEARCH_REDIS, excludeParams = {"uid", "udid"})
@SearchCacheAble(cacheName = "WEB_NEW_SHELVE", cacheInMinute = 15, excludeParams = {"uid", "udid"})
public SearchApiResult webNewShelveProductList(Map<String, String> paramMap) {
try {
logger.info("[func=aggProductsByBrandId][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
... ... @@ -101,7 +101,7 @@ public class WebNewShelveService implements ApplicationEventPublisherAware {
}
}
@SearchCacheAble(cacheName = "WEB_NEW_SHELVE_BATCH", cacheInMinute = 15, cacheType = CacheType.SEARCH_REDIS, excludeParams = {"uid", "udid"})
@SearchCacheAble(cacheName = "WEB_NEW_SHELVE_BATCH", cacheInMinute = 15, excludeParams = {"uid", "udid"})
public SearchApiResult webNewShelveBatchProductList(Map<String, String> paramMap) {
try {
logger.info("[func=webNewShelvesProductList][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
... ...