Authored by hugufei

只有新版本个性化使用本地缓存,其他全部使用redis缓存

... ... @@ -217,7 +217,7 @@ public class ProductListServiceHelper {
* @param paramMap
* @return
*/
@SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.EHCACHE, cacheInMinute = 10, excludeParams = { "uid", "firstProductSkn" })
@SearchCacheAble(cacheName = "PRODUCT_LIST_NOT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10, excludeParams = { "uid", "firstProductSkn" })
public SearchApiResult productListNotPersional(Map<String, String> paramMap) {
try {
// 1)验证查询条数
... ... @@ -261,7 +261,7 @@ public class ProductListServiceHelper {
* @param paramMap
* @return
*/
@SearchCacheAble(cacheName = "PRODUCT_LIST_DEFAULT_PERSIONAL", cacheType = CacheType.EHCACHE, cacheInMinute = 10)
@SearchCacheAble(cacheName = "PRODUCT_LIST_DEFAULT_PERSIONAL", cacheType = CacheType.SEARCH_REDIS, cacheInMinute = 10)
public SearchApiResult productListForDefaultPersional(Map<String, String> paramMap) {
try {
// 1)验证查询条数
... ...
... ... @@ -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.SEARCH_REDIS,cacheInMinute = 10)
public SearchApiResult queryProductListByRecallParam(CommonRecallParam commonRecallParam) {
try {
// 1、获取参数
... ...
... ... @@ -29,7 +29,7 @@ public class PersonalVectorFeatureSearch {
@Autowired
private BigDataRedisService bigDataRedisService;
@SearchCacheAble(cacheInMinute = 10, cacheName = "PERSIONAL_VECTOR", returnClass = PersonalizedSearch.class, cacheType = CacheType.EHCACHE, includeParams = { "uid" })
@SearchCacheAble(cacheInMinute = 10, cacheName = "PERSIONAL_VECTOR", returnClass = PersonalizedSearch.class, cacheType = CacheType.SEARCH_REDIS, includeParams = { "uid" })
public PersonalizedSearch getPersonalizedSearch(Map<String, String> paramMap) {
try {
// 1、参数校验
... ...