Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yoho-search
/
yoho-search-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hugufei
7 years ago
Commit
4e513282141ebd64fe0e9f0a7334971e41612fc4
1 parent
ef9d00f0
增加列表的缓存时间
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
service/src/main/java/com/yoho/search/service/scene/pages/entrance/DefaultProductListService.java
service/src/main/java/com/yoho/search/service/scene/pages/entrance/FuzzySceneProductListService.java
service/src/main/java/com/yoho/search/service/scene/pages/entrance/DefaultProductListService.java
View file @
4e51328
...
...
@@ -35,7 +35,7 @@ class DefaultProductListService {
* @return
*/
@ProductListWithSknRetention
@SearchCacheAble
(
cacheName
=
"PRODUCT_LIST_DEFAULT_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
5
)
@SearchCacheAble
(
cacheName
=
"PRODUCT_LIST_DEFAULT_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
10
)
public
SearchApiResult
productListForDefaultPersional
(
Map
<
String
,
String
>
paramMap
)
{
try
{
// 1) 构建SearchParam
...
...
@@ -61,7 +61,7 @@ class DefaultProductListService {
* @return
*/
@ProductListWithSknRetention
@SearchCacheAble
(
cacheName
=
"PRODUCT_LIST_NOT_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
5
,
excludeParams
=
{
"uid"
,
"udid"
,
"firstProductSkn"
})
@SearchCacheAble
(
cacheName
=
"PRODUCT_LIST_NOT_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
10
,
excludeParams
=
{
"uid"
,
"udid"
,
"firstProductSkn"
})
public
SearchApiResult
productListNotPersional
(
Map
<
String
,
String
>
paramMap
)
{
try
{
// 1) 构建SearchParam
...
...
service/src/main/java/com/yoho/search/service/scene/pages/entrance/FuzzySceneProductListService.java
View file @
4e51328
...
...
@@ -31,7 +31,7 @@ class FuzzySceneProductListService{
private
ProductListHelper
productListHelper
;
@ProductListWithSknRetention
@SearchCacheAble
(
cacheName
=
"FUZZY_PRODUCT_LIST_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
5
)
@SearchCacheAble
(
cacheName
=
"FUZZY_PRODUCT_LIST_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
10
)
public
SearchApiResult
fuzzyProductListPersional
(
Map
<
String
,
String
>
paramMap
)
{
try
{
// 1)定义页面为模糊搜索的页面
...
...
@@ -53,7 +53,7 @@ class FuzzySceneProductListService{
}
@ProductListWithSknRetention
@SearchCacheAble
(
cacheName
=
"FUZZY_PRODUCT_LIST_NOT_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
5
,
excludeParams
=
{
"uid"
,
"udid"
,
"firstProductSkn"
})
@SearchCacheAble
(
cacheName
=
"FUZZY_PRODUCT_LIST_NOT_PERSIONAL"
,
cacheType
=
CacheType
.
SEARCH_REDIS
,
cacheInMinute
=
10
,
excludeParams
=
{
"uid"
,
"udid"
,
"firstProductSkn"
})
public
SearchApiResult
fuzzyProductListNotPersional
(
Map
<
String
,
String
>
paramMap
)
{
try
{
// 1)定义页面为模糊搜索的页面
...
...
Please
register
or
login
to post a comment