package com.fs.common.constant;

/**
 * Redis Key常量
 *
 * @author zhangqin
 * @date 2025-11-03
 */
public class RedisKeyConstant {

    /**
     * 分布式锁前缀
     */
    public static final String LOCK_PREFIX = "crm:adv:lock:";

    /**
     * 站点统计缓存前缀
     */
    public static final String SITE_STATS_PREFIX = "crm:adv:site:stats:";

    /**
     * 展示数计数器前缀
     */
    public static final String IMPRESSION_COUNT_PREFIX = "crm:adv:impression:";

    /**
     * 点击数计数器前缀
     */
    public static final String CLICK_COUNT_PREFIX = "crm:adv:click:";

    /**
     * 转化数计数器前缀
     */
    public static final String CONVERSION_COUNT_PREFIX = "crm:adv:conversion:";

    /**
     * 任务执行锁前缀
     */
    public static final String TASK_LOCK_PREFIX = "crm:adv:task:lock:";

    /**
     * 广告商配置缓存前缀
     */
    public static final String ADVERTISER_CONFIG_PREFIX = "crm:adv:advertiser:config:";

    /**
     * 站点配置缓存前缀
     */
    public static final String SITE_CONFIG_PREFIX = "crm:adv:site:config:";

    /**
     * 百度AccessToken缓存前缀
     */
    public static final String BAIDU_ACCESS_TOKEN_PREFIX = "crm:adv:baidu:token:";

    /**
     * 巨量引擎AccessToken缓存前缀
     */
    public static final String OCEANENGINE_ACCESS_TOKEN_PREFIX = "crm:adv:oceanengine:token:";

    /**
     * 缓存过期时间（秒）
     */
    public static final long CACHE_EXPIRE_TIME = 3600;

    /**
     * 锁过期时间（秒）
     */
    public static final long LOCK_EXPIRE_TIME = 300;
}

