Authored by 胡古飞

将getSelectionsForPcCache的缓存拆分出来

... ... @@ -113,7 +113,29 @@ public class SearchCacheFactory {
int cacheInMinute = 15;
return this.getOrCreateSearchCache("AGGREGATION", cacheType, cacheInMinute);
}
/**
* 获取聚合相关的缓存[yoho_redis with 30 min]
*
* @return
*/
public SearchCache getSelectionsForAppCache() {
CacheType cacheType = CacheType.YOHO_REDIS;
int cacheInMinute = 30;
return this.getOrCreateSearchCache("SELECTIONS_APP", cacheType, cacheInMinute);
}
/**
* 获取聚合相关的缓存[yoho_redis with 30 min]
*
* @return
*/
public SearchCache getSelectionsForPcCache() {
CacheType cacheType = CacheType.YOHO_REDIS;
int cacheInMinute = 30;
return this.getOrCreateSearchCache("SELECTIONS_PC", cacheType, cacheInMinute);
}
/**
* 推荐相关的缓存[yoho_redis with 30min]
*
... ...
... ... @@ -63,7 +63,7 @@ public class SelectionForAppImpl implements ISelectionsForApp {
@PostConstruct
void init() {
aggregationSearchCache = searchCacheFactory.getAggregationSearchCache();
aggregationSearchCache = searchCacheFactory.getSelectionsForAppCache();
}
@Override
... ...
... ... @@ -72,7 +72,7 @@ public class SelectionsForPcImpl implements ISelectionsForPc {
@PostConstruct
void init() {
aggregationSearchCache = searchCacheFactory.getAggregationSearchCache();
aggregationSearchCache = searchCacheFactory.getSelectionsForPcCache();
}
... ...