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

}