コード例 #1
0
 public Task <LoginCheckInfo> GetLoginCheckInfo(string platformAccount)
 {
     return(RedisOpt.GetStringAsync <LoginCheckInfo>(KeyGenTool.GenKey(platformAccount,
                                                                       nameof(LoginCheckInfo))));
 }
コード例 #2
0
 public Task <GameInfo> GetGameInfo(long id)
 {
     return(RedisOpt.GetStringAsync <GameInfo>(KeyGenTool.GenUserKey(id, GameInfo.ClassName)));
 }
コード例 #3
0
 public Task <UserRoomInfo> GetUserRoomInfo(long id)
 {
     return(RedisOpt.GetStringAsync <UserRoomInfo>(KeyGenTool.GenUserKey(id, nameof(UserRoomInfo))));
 }
コード例 #4
0
 public Task <AccountInfo> GetAccountInfo(long id)
 {
     return(RedisOpt.GetStringAsync <AccountInfo>(KeyGenTool.GenUserKey(id,
                                                                        nameof(AccountInfo))));
 }
コード例 #5
0
 public Task <ServiceTemplateInfo> GetServiceTemplateInfo(long id)
 {
     return(RedisOpt.GetStringAsync <ServiceTemplateInfo>(KeyGenTool.GenUserKey(id,
                                                                                nameof(ServiceTemplateInfo))));
 }
コード例 #6
0
 public Task <GameInfo> GetGameInfo(long id)
 {
     return(RedisOpt.GetStringAsync <GameInfo>(KeyGenTool.GenUserKey(id,
                                                                     nameof(GameInfo))));
 }
コード例 #7
0
 public Task <BankruptcyInfo> GetBankruptcyInfo(DateTime date, long id)
 {
     return(RedisOpt.GetStringAsync <BankruptcyInfo>
                (KeyGenTool.GenUserDayKey(date, id, nameof(BankruptcyInfo))));
 }
コード例 #8
0
 public Task <LoginRewardInfo> GetLoginReward(DateTime date, long id)
 {
     return(RedisOpt.GetStringAsync <LoginRewardInfo>
                (KeyGenTool.GenUserWeekKey(date, id, nameof(LoginRewardInfo))));
 }
コード例 #9
0
 public Task <RegisterRewardInfo> GetUserRegiserReward(long id)
 {
     return(RedisOpt.GetStringAsync <RegisterRewardInfo>(KeyGenTool.GenUserKey(id, nameof(RegisterRewardInfo))));
 }