CacheTimeConstants.java
1.05 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
39
40
41
42
package com.yoho.search.cache;
/**
* 缓存时间定义-单位秒
*/
public class CacheTimeConstants {
//通用召回的缓存
public static final int COMMON_RECALL_STRATEGY_CACHE_TIME = 5;
//SKN的的缓存
public static final int SKN_RECALL_CACHE_TIME = 10;
//品类+品牌的缓存
public static final int SORT_BRAND_RECALL_STRATEGY_CACHE_TIME = 60;
//SKN基本信息的缓存
public static final int SKN_BASE_INFO = 60;
//SKN编码缓存
public static final int SKN_CODE = 60;
//SKN返回信息的缓存
public static final int SKN_RETURN_INFO = 3;
//用户召回结果的缓存
public static final int USER_RECALL_SKN_LIST = 10;
//页面skn的bitset缓存
public static final int PAGE_SKN_CODE_BITSET = 60;
//页面个性化因子的缓存
public static final int PAGE_PERSIONAL_FACTOR = 60;
public static final int CACHE_60_MINUTE = 60;
public static final int CACHE_30_MINUTE = 30;
public static final int CACHE_10_MINUTE = 10;
}