CacheTimeConstants.java
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.yoho.search.cache;
/**
* 缓存时间定义-单位秒
*/
public class CacheTimeConstants {
//SKN基本信息的缓存
public static final int SKN_BASE_INFO = 60;
//SKN编码缓存
public static final int SKN_CODE = 60;
//页面skn的bitset缓存
public static final int PAGE_SKN_CODE_BITSET = 60;
//通用召回的缓存
public static final int COMMON_RECALL_STRATEGY_CACHE_TIME = 5;
//品类品牌召回结果的缓存
public static final int SORT_BRAND_RECALL_STRATEGY_CACHE_TIME = 30;
//按SKN召回结果的的缓存
public static final int SKN_RECALL_CACHE_TIME = 10;
//SKN返回信息的缓存
public static final int SKN_RETURN_INFO = 3;
//用户召回结果的缓存-需要时间够长,不然可能出现重复数据
public static final int USER_RECALL_SKN_LIST = 30;
//页面个性化因子的缓存
public static final int PAGE_PERSIONAL_FACTOR = 10;
public static final int CACHE_COMMON_MINUTE = 10;
public static final int CACHE_WEB_MINUTE = 5;
}