CacheTimeConstants.java 1.05 KB
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;

}