56 lines
2.3 KiB
C#
56 lines
2.3 KiB
C#
using System;
|
|
|
|
namespace Common.Redis
|
|
{
|
|
public class RedisKey
|
|
{
|
|
public static string MatchingRoom => RedisKeyGenerator.GameKey("matching:room:level:{0}");
|
|
|
|
public static string UserCIDGID => RedisKeyGenerator.UserKey("uid:{0}");
|
|
|
|
public static string LoginCIDUser => RedisKeyGenerator.UserKey("cid:{0}");
|
|
|
|
public static string CIDUser => RedisKeyGenerator.UserKey("cid:{0}");
|
|
|
|
public static string VerificationCode => RedisKeyGenerator.UserKey("verification_code:{0}");
|
|
|
|
public static string ProductRedis => RedisKeyGenerator.UserKey("product:{0}");
|
|
|
|
public static string WeiXin_AccessToken => RedisKeyGenerator.CommonKey("wx_access_token");
|
|
|
|
public static string WeiXinUser_AccessToken => RedisKeyGenerator.CommonKey("wx_user_access_token:{0}");
|
|
|
|
public static string GameConfig => RedisKeyGenerator.GameKey("config");
|
|
|
|
public static string ActivityConfig => RedisKeyGenerator.GameKey("activity:config");
|
|
|
|
public static string TodayVisitsKey => RedisKeyGenerator.AdminKey("stats:visits:today");
|
|
|
|
public static string MonthVisitsKey => RedisKeyGenerator.AdminKey("stats:visits:month");
|
|
|
|
public static string TotalVisitsKey => RedisKeyGenerator.AdminKey("stats:visits:total");
|
|
|
|
public static string TotalTrafficKey => RedisKeyGenerator.AdminKey("stats:traffic:total");
|
|
|
|
public static string TodayTrafficKey => RedisKeyGenerator.AdminKey("stats:traffic:today");
|
|
|
|
public static string MonthTrafficKey => RedisKeyGenerator.AdminKey("stats:traffic:month");
|
|
|
|
public static string GameRoomIdKey => RedisKeyGenerator.GameKey("room:model:{0}_{1}");
|
|
|
|
public static string DistributedLockPrefix => RedisKeyGenerator.CommonKey("lock:");
|
|
|
|
public static string ChessRoomList => RedisKeyGenerator.GameKey("chess:room:list");
|
|
|
|
public static string ChessRoomKey => RedisKeyGenerator.GameKey("chess:room:{0}");
|
|
|
|
public static string SystemGoldDayKey => RedisKeyGenerator.GameKey("fish:gamestatic");
|
|
|
|
public static string CUSTOMER_ONLINE_KEY => RedisKeyGenerator.CustomerKey("online");
|
|
|
|
public static string FishingKillConfig => RedisKeyGenerator.GameKey("fishing:killconfig");
|
|
|
|
public static string FishSpawnConfig => RedisKeyGenerator.GameKey("fish:spawn:config:v1");
|
|
}
|
|
}
|