12 lines
561 B
C#
12 lines
561 B
C#
namespace IM_API.Tools
|
|
{
|
|
public static class RedisKeys
|
|
{
|
|
public static string GetUserinfoKey(string userId) => $"user::uinfo::{userId}";
|
|
public static string GetUserinfoKeyByUsername(string username) => $"user::uinfobyid::{username}";
|
|
public static string GetSequenceIdKey(string streamKey) => $"chat::seq::{streamKey}";
|
|
public static string GetSequenceIdLockKey(string streamKey) => $"lock::seq::{streamKey}";
|
|
public static string GetConnectionIdKey(string userId) => $"signalr::user::con::{userId}";
|
|
}
|
|
}
|