Authored by hugufei

使用yoho_redis缓存召回结果

@@ -87,7 +87,7 @@ public class CacheAbleServiceHelper { @@ -87,7 +87,7 @@ public class CacheAbleServiceHelper {
87 * @param paramMap 87 * @param paramMap
88 * @return 88 * @return
89 */ 89 */
90 - @SearchCacheAble(cacheName = "COMMON_SCENE_QUERY_BY_PARAM", cacheType=CacheType.EHCACHE,cacheInMinute = 10) 90 + @SearchCacheAble(cacheName = "COMMON_SCENE_QUERY_BY_PARAM", cacheType=CacheType.YOHO_REDIS,cacheInMinute = 10)
91 public SearchApiResult queryProductListByRecallParam(CommonRecallParam commonRecallParam) { 91 public SearchApiResult queryProductListByRecallParam(CommonRecallParam commonRecallParam) {
92 try { 92 try {
93 // 1、获取参数 93 // 1、获取参数
@@ -20,7 +20,6 @@ import org.springframework.stereotype.Component; @@ -20,7 +20,6 @@ import org.springframework.stereotype.Component;
20 20
21 import com.yoho.search.base.utils.ISearchConstants; 21 import com.yoho.search.base.utils.ISearchConstants;
22 import com.yoho.search.base.utils.ProductIndexEsField; 22 import com.yoho.search.base.utils.ProductIndexEsField;
23 -import com.yoho.search.common.cache.CacheType;  
24 import com.yoho.search.common.cache.aop.SearchCacheAble; 23 import com.yoho.search.common.cache.aop.SearchCacheAble;
25 import com.yoho.search.core.es.model.SearchParam; 24 import com.yoho.search.core.es.model.SearchParam;
26 import com.yoho.search.core.es.model.SearchResult; 25 import com.yoho.search.core.es.model.SearchResult;
@@ -50,7 +49,7 @@ public class CommonPageRecallService extends BaseRecallService { @@ -50,7 +49,7 @@ public class CommonPageRecallService extends BaseRecallService {
50 * @param paramMap 49 * @param paramMap
51 * @return 50 * @return
52 */ 51 */
53 - @SearchCacheAble(cacheInMinute = 10, cacheName = "COMMON_PAGE_RECALL_BATCH",cacheType=CacheType.EHCACHE, returnClass = CommonRecallResult.class, excludeParams = { "uid", "order", "page" }) 52 + @SearchCacheAble(cacheInMinute = 10, cacheName = "COMMON_PAGE_RECALL_BATCH",returnClass = CommonRecallResult.class, excludeParams = { "uid", "order", "page" })
54 public CommonRecallResult doCommonPageRecallBatch(Map<String, String> paramMap) { 53 public CommonRecallResult doCommonPageRecallBatch(Map<String, String> paramMap) {
55 try { 54 try {
56 int viewNum = this.getViewNum(paramMap); 55 int viewNum = this.getViewNum(paramMap);