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"; /// /// 频道用户数 /// /// /// public static string GetChannelUserCountKey(string tenantId) => $@"te_{tenantId}:ChannelUserCount"; } } }