|
@@ -120,7 +120,7 @@ public class SearchCacheFactory { |
|
@@ -120,7 +120,7 @@ public class SearchCacheFactory { |
120
|
int cacheInMinute = 30;
|
120
|
int cacheInMinute = 30;
|
121
|
return this.getOrCreateSearchCache("RECOMMEND_SHOP_AND_BRAND", cacheType, cacheInMinute);
|
121
|
return this.getOrCreateSearchCache("RECOMMEND_SHOP_AND_BRAND", cacheType, cacheInMinute);
|
122
|
}
|
122
|
}
|
123
|
-
|
123
|
+
|
124
|
/**
|
124
|
/**
|
125
|
* 个性化聚合推荐相关的缓存-很耗性能[yoho_redis with 30min]
|
125
|
* 个性化聚合推荐相关的缓存-很耗性能[yoho_redis with 30min]
|
126
|
*
|
126
|
*
|
|
@@ -133,7 +133,7 @@ public class SearchCacheFactory { |
|
@@ -133,7 +133,7 @@ public class SearchCacheFactory { |
133
|
}
|
133
|
}
|
134
|
|
134
|
|
135
|
/**
|
135
|
/**
|
136
|
- * 找相似相关的缓存-很耗性能[yoho_redis with 15min]
|
136
|
+ * 找相似相关的缓存 TODO move
|
137
|
*
|
137
|
*
|
138
|
* @return
|
138
|
* @return
|
139
|
*/
|
139
|
*/
|
|
@@ -144,7 +144,7 @@ public class SearchCacheFactory { |
|
@@ -144,7 +144,7 @@ public class SearchCacheFactory { |
144
|
}
|
144
|
}
|
145
|
|
145
|
|
146
|
/**
|
146
|
/**
|
147
|
- * 有好货的缓存
|
147
|
+ * 有好货的缓存 TODO move
|
148
|
*
|
148
|
*
|
149
|
* @return
|
149
|
* @return
|
150
|
*/
|
150
|
*/
|
|
@@ -153,7 +153,7 @@ public class SearchCacheFactory { |
|
@@ -153,7 +153,7 @@ public class SearchCacheFactory { |
153
|
int cacheInMinute = 10;
|
153
|
int cacheInMinute = 10;
|
154
|
return this.getOrCreateSearchCache("GOOD_PRODUCT", cacheType, cacheInMinute);
|
154
|
return this.getOrCreateSearchCache("GOOD_PRODUCT", cacheType, cacheInMinute);
|
155
|
}
|
155
|
}
|
156
|
-
|
156
|
+
|
157
|
/**
|
157
|
/**
|
158
|
* aop的缓存
|
158
|
* aop的缓存
|
159
|
*
|
159
|
*
|
|
@@ -161,7 +161,29 @@ public class SearchCacheFactory { |
|
@@ -161,7 +161,29 @@ public class SearchCacheFactory { |
161
|
*/
|
161
|
*/
|
162
|
public SearchCache getAspectSearhCache(SearchCacheAble searchCacheAble) {
|
162
|
public SearchCache getAspectSearhCache(SearchCacheAble searchCacheAble) {
|
163
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
163
|
CacheType cacheType = CacheType.SEARCH_REDIS;
|
164
|
- return this.getOrCreateSearchCache("AOP_"+searchCacheAble.cacheName(), cacheType, searchCacheAble.cacheInMinute());
|
164
|
+ return this.getOrCreateSearchCache("AOP_" + searchCacheAble.cacheName(), cacheType, searchCacheAble.cacheInMinute());
|
|
|
165
|
+ }
|
|
|
166
|
+
|
|
|
167
|
+ /**
|
|
|
168
|
+ * 场景化接口的缓存
|
|
|
169
|
+ *
|
|
|
170
|
+ * @return
|
|
|
171
|
+ */
|
|
|
172
|
+ public SearchCache getSceneProductListSearchCache() {
|
|
|
173
|
+ CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
174
|
+ int cacheInMinute = 10;
|
|
|
175
|
+ return this.getOrCreateSearchCache("SCENE_PRODUCT_LIST", cacheType, cacheInMinute);
|
|
|
176
|
+ }
|
|
|
177
|
+
|
|
|
178
|
+ /**
|
|
|
179
|
+ * 场景化筛选项的缓存
|
|
|
180
|
+ *
|
|
|
181
|
+ * @return
|
|
|
182
|
+ */
|
|
|
183
|
+ public SearchCache getSceneAggregationsCache() {
|
|
|
184
|
+ CacheType cacheType = CacheType.SEARCH_REDIS;
|
|
|
185
|
+ int cacheInMinute = 30;
|
|
|
186
|
+ return this.getOrCreateSearchCache("SCENE_AAAREGATIONS", cacheType, cacheInMinute);
|
165
|
}
|
187
|
}
|
166
|
|
188
|
|
167
|
} |
189
|
} |