package com.wecloud.rtc;

import java.io.Serializable;

public class RtcRedisKey implements Serializable {


    /**
     * 维护频道信息
     */
    public static final String RTC_CHANNEL_INFO = "rci:%s";


    /**
     * 维护所有用户当前在线的频道ID
     * user_join_channel = ujc
     * rcu:clientA = 10001
     * rcu:clientB = 10001
     * rcu:clientC = 10002
     * rcu:clientD = 10003
     */
    public static final String USER_JOIN_CHANNEL = "ujc:%s";

    /**
     * 维护频道中存在的用户
     * <p>
     * redis Key (set 集合):
     * rtc_channel_users = rcu
     * rcu:10001  = clientA , clientB
     * rcu:10002 = clientC
     * rcu:10003 = clientD
     */
    public static final String RTC_CHANNEL_USERS = "rcu:%s";


}
