package com.wecloud.im.biz.module.rtc.entity.redis;

import java.io.Serializable;

public class RtcRedisKey implements Serializable {

    /**
     * 维护频道信息 (kv)
     */
    public static final String RTC_CHANNEL_INFO = "r:ci:%s";

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

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

}
