Authored by hugufei

使用yoho_redis缓存召回结果

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