Authored by hugufei

fix CacheType

@@ -27,7 +27,7 @@ public @interface SearchCacheAble { @@ -27,7 +27,7 @@ public @interface SearchCacheAble {
27 27
28 /** 28 /**
29 * 缓存类型,默认search_redis 29 * 缓存类型,默认search_redis
30 - * 30 + *
31 * @return 31 * @return
32 */ 32 */
33 public CacheType cacheType() default CacheType.SEARCH_REDIS; 33 public CacheType cacheType() default CacheType.SEARCH_REDIS;
@@ -35,7 +35,7 @@ class DefaultProductListService { @@ -35,7 +35,7 @@ class DefaultProductListService {
35 * @return 35 * @return
36 */ 36 */
37 @ProductListWithSknRetention 37 @ProductListWithSknRetention
38 - @SearchCacheAble(cacheName = "PRODUCT_LIST_DEFAULT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10) 38 + @SearchCacheAble(cacheName = "PRODUCT_LIST_DEFAULT_PERSIONAL", cacheInMinute = 10)
39 public SearchApiResult productListForDefaultPersional(Map<String, String> paramMap) { 39 public SearchApiResult productListForDefaultPersional(Map<String, String> paramMap) {
40 try { 40 try {
41 // 1) 构建SearchParam 41 // 1) 构建SearchParam
@@ -61,7 +61,7 @@ class DefaultProductListService { @@ -61,7 +61,7 @@ class DefaultProductListService {
61 * @return 61 * @return
62 */ 62 */
63 @ProductListWithSknRetention 63 @ProductListWithSknRetention
64 - @SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"}) 64 + @SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL",cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"})
65 public SearchApiResult productListNotPersional(Map<String, String> paramMap) { 65 public SearchApiResult productListNotPersional(Map<String, String> paramMap) {
66 try { 66 try {
67 // 1) 构建SearchParam 67 // 1) 构建SearchParam
@@ -31,7 +31,7 @@ class FuzzySceneProductListService{ @@ -31,7 +31,7 @@ class FuzzySceneProductListService{
31 private ProductListHelper productListHelper; 31 private ProductListHelper productListHelper;
32 32
33 @ProductListWithSknRetention 33 @ProductListWithSknRetention
34 - @SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10) 34 + @SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_PERSIONAL", cacheInMinute = 10)
35 public SearchApiResult fuzzyProductListPersional(Map<String, String> paramMap) { 35 public SearchApiResult fuzzyProductListPersional(Map<String, String> paramMap) {
36 try { 36 try {
37 // 1)定义页面为模糊搜索的页面 37 // 1)定义页面为模糊搜索的页面
@@ -53,7 +53,7 @@ class FuzzySceneProductListService{ @@ -53,7 +53,7 @@ class FuzzySceneProductListService{
53 } 53 }
54 54
55 @ProductListWithSknRetention 55 @ProductListWithSknRetention
56 - @SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"}) 56 + @SearchCacheAble(cacheName = "FUZZY_PRODUCT_LIST_NOT_PERSIONAL",cacheInMinute = 10, excludeParams = {"uid", "udid", "firstProductSkn"})
57 public SearchApiResult fuzzyProductListNotPersional(Map<String, String> paramMap) { 57 public SearchApiResult fuzzyProductListNotPersional(Map<String, String> paramMap) {
58 try { 58 try {
59 // 1)定义页面为模糊搜索的页面 59 // 1)定义页面为模糊搜索的页面
@@ -65,7 +65,7 @@ public class WebNewShelveService implements ApplicationEventPublisherAware { @@ -65,7 +65,7 @@ public class WebNewShelveService implements ApplicationEventPublisherAware {
65 this.publisher = applicationEventPublisher; 65 this.publisher = applicationEventPublisher;
66 } 66 }
67 67
68 - @SearchCacheAble(cacheName = "WEB_NEW_SHELVE", cacheInMinute = 15, cacheType = CacheType.SEARCH_REDIS, excludeParams = {"uid", "udid"}) 68 + @SearchCacheAble(cacheName = "WEB_NEW_SHELVE", cacheInMinute = 15, excludeParams = {"uid", "udid"})
69 public SearchApiResult webNewShelveProductList(Map<String, String> paramMap) { 69 public SearchApiResult webNewShelveProductList(Map<String, String> paramMap) {
70 try { 70 try {
71 logger.info("[func=aggProductsByBrandId][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis()); 71 logger.info("[func=aggProductsByBrandId][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());
@@ -101,7 +101,7 @@ public class WebNewShelveService implements ApplicationEventPublisherAware { @@ -101,7 +101,7 @@ public class WebNewShelveService implements ApplicationEventPublisherAware {
101 } 101 }
102 } 102 }
103 103
104 - @SearchCacheAble(cacheName = "WEB_NEW_SHELVE_BATCH", cacheInMinute = 15, cacheType = CacheType.SEARCH_REDIS, excludeParams = {"uid", "udid"}) 104 + @SearchCacheAble(cacheName = "WEB_NEW_SHELVE_BATCH", cacheInMinute = 15, excludeParams = {"uid", "udid"})
105 public SearchApiResult webNewShelveBatchProductList(Map<String, String> paramMap) { 105 public SearchApiResult webNewShelveBatchProductList(Map<String, String> paramMap) {
106 try { 106 try {
107 logger.info("[func=webNewShelvesProductList][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis()); 107 logger.info("[func=webNewShelvesProductList][param={}][begin={}]", paramMap.toString(), System.currentTimeMillis());