...
|
...
|
@@ -49,7 +49,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getDefaultSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 15;
|
|
|
return this.getOrCreateSearchCache("DEFAULT", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -60,7 +60,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getAggregationSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 15;
|
|
|
return this.getOrCreateSearchCache("AGGREGATION", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -71,7 +71,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getProductCountSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 15;
|
|
|
return this.getOrCreateSearchCache("PRODUCT_COUNT", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -82,7 +82,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getSelectionsForAppCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 30;
|
|
|
return this.getOrCreateSearchCache("SELECTIONS_APP", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -93,7 +93,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getSelectionsForPcCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 30;
|
|
|
return this.getOrCreateSearchCache("SELECTIONS_PC", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -104,7 +104,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getBrandAndShopSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 15;
|
|
|
return this.getOrCreateSearchCache("BRAND_AND_SHOP", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -115,7 +115,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getTblSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 15;
|
|
|
return this.getOrCreateSearchCache("TBL", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -126,7 +126,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getProductListSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 5;
|
|
|
return this.getOrCreateSearchCache("PRODUCT_LIST", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -137,7 +137,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getAggProductListSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 30;
|
|
|
return this.getOrCreateSearchCache("AGG_PRODUCT_LIST", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -148,7 +148,7 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getRecommendShopAndBrandCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 30;
|
|
|
return this.getOrCreateSearchCache("RECOMMEND_SHOP_AND_BRAND", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -159,19 +159,18 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getSearchLikeSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 360;
|
|
|
return this.getOrCreateSearchCache("SEARCHLIKE", cacheType, cacheInMinute);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 有好货的缓存
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache goodProductListSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 10;
|
|
|
return this.getOrCreateSearchCache("GOOD_PRODUCT", cacheType, cacheInMinute);
|
|
|
}
|
...
|
...
|
@@ -182,9 +181,9 @@ public class SearchCacheFactory { |
|
|
* @return
|
|
|
*/
|
|
|
public SearchCache getHotSaleRankSearchCache() {
|
|
|
CacheType cacheType = CacheType.YOHO_REDIS;
|
|
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
int cacheInMinute = 60;
|
|
|
return this.getOrCreateSearchCache("HOT_SALE_RANK", cacheType, cacheInMinute);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|