package com.fs.common.constant;

public class LiveKeysConstant {

    public static final String USER_VISIT_KEY = "live:user:visit:";  // 用户访问标识用于判断是否是首次访问
    public static final String UNIQUE_VISITORS_KEY = "live:unique:visitors:";  //访客数
    public static final String UNIQUE_VIEWERS_KEY = "live:unique:viewers:";  //累计观看人数
    public static final String PAGE_VIEWS_KEY = "live:page:views:";  //浏览量
    public static final String TOTAL_VIEWS_KEY = "live:total:views:";  //累计观看人次
    public static final String MAX_ONLINE_USERS_KEY = "live:max:online:"; //最大在线人数
    public static final String ONLINE_USERS_KEY = "live:online:users:";  //当前在线人数
    public static final String ONLINE_USERS_SET_KEY = "live:online:users:set:";  //在线用户Set（用于统计最大同时在线人数）


    public static final String LIVE_HOME_PAGE_LIST = "live:homePage:list"; //直播列表数据
    public static final Integer LIVE_HOME_PAGE_LIST_EXPIRE = 300; //首页缓存过期时间
    public static final String LIVE_WATCH_USERS = "live:watch:users:%s"; //在线人数
    public static final String LIVE_COUPON_NUM = "live:coupon:num:%s"; //直播间优惠券数量

    public static final String LIVE_HOME_PAGE_DETAIL = "live:detail:%s"; //直播间详情
    public static final Integer LIVE_HOME_PAGE_DETAIL_EXPIRE = 300; //直播间详情过期时间

    public static final String LIVE_HOME_PAGE_CONFIG = "live:config:%s:%s"; //直播间配置信息
    public static final Integer LIVE_HOME_PAGE_CONFIG_EXPIRE = 300; //直播间配置信息过期时间
    public static final String LIVE_HOME_PAGE_CONFIG_RED = "live:config:%s:red:%s"; //红包记录
    public static final String LIVE_HOME_PAGE_CONFIG_COUPON = "live:config:%s:coupon:%s"; //优惠券记录
    public static final String LIVE_HOME_PAGE_CONFIG_DRAW = "live:config:%s:draw:%s"; //抽奖记录
    public static final String TOP_MSG = "topMsg"; //抽奖记录

    public static final String LIVE_FLAG_CACHE = "live:flag:%s"; //直播间直播/回放状态缓存
    public static final Integer LIVE_FLAG_CACHE_EXPIRE = 60; //直播间状态缓存过期时间（秒）


}
