using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WGShare.Domain.Constant { /// /// redis key 常量值 /// public class RedisKeyConstant { /// /// 会话管理 /// public class SessionManage { /// /// 在线人数 /// public static string GetOnlineUserKey(string tenantId) => $@"te_{tenantId}:OnlieUser"; /// /// 频道用户 /// /// /// /// public static string GetChannelUserKey(string tenantId, string roomNum) => $@"te_{tenantId}:ch_{roomNum}"; /// /// 用户参与频道 /// /// /// public static string GetUserJoinChannelKey(string uid) => $@"u_{uid}_join"; /// /// 频道用户数 /// /// /// [Obsolete("废弃")] public static string GetChannelUserCountKey(string tenantId) => $@"te_{tenantId}:ChannelUserCount"; } /// /// 房间管理 /// public class RoomManager { /// /// 获取频道全员观看对象 /// /// /// /// public static string GetChannelShowUserKey(string tenantId) => $@"te_{tenantId}:room_show_user"; } } }