Authored by 胡古飞

fix find bugs

... ... @@ -27,7 +27,7 @@ public class EhCache implements CacheInterface {
}
@PostConstruct
void init() {
private void init() {
this.cacheManager = CacheManager.create();
this.cacheManager.addCache(cacheName);
this.cache = cacheManager.getCache(cacheName);
... ...
... ... @@ -3,10 +3,11 @@ package com.yoho.search.service.cache.model;
import com.yoho.search.service.cache.caches.CacheInterface;
public class SearchCache {
private static final int logPeriodInMinute = 1;// 默认每分钟打印一次日志
private CacheInterface cacheInterface;// 缓存类型
private int cacheInMinute = 5;// 缓存时间
private int logPeriodInMinute = 1;// 默认每分钟打印一次日志
private CacheMatchLogger cacheMatchLogger;
public SearchCache(String cacheName, CacheInterface cacheInterface, int cacheInMinute) {
... ...
... ... @@ -37,7 +37,7 @@ import com.yoho.search.service.vo.SearchApiResult;
public class AggRecommendServiceImpl implements IAggRecommendService {
private static final Logger logger = LoggerFactory.getLogger(AggRecommendServiceImpl.class);
private static Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST");
private static final Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST");
@Autowired
private SearchSortHelper searchSortHelper;
... ...
... ... @@ -64,8 +64,9 @@ import com.yoho.search.service.vo.SearchApiResult;
@Service
public class BrandServiceImpl implements IBrandService, ApplicationEventPublisherAware {
private static final Logger logger = LoggerFactory.getLogger(BrandServiceImpl.class);
private static Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST");
private static final Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST");
@Autowired
private SearchSortHelper searchSortHelper;
... ...