コード例 #1
0
 public bool Send <T>(params T[] dataList) where T : AbstractEntity
 {
     if (_sendParam.Schema.CacheType == CacheType.Rank)
     {
         return(RedisConnectionPool.TryUpdateRankEntity(_sendParam.Key, dataList));
     }
     return(RedisConnectionPool.TryUpdateEntity(dataList));
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="key"></param>
 /// <param name="dataList"></param>
 /// <returns></returns>
 public bool TryUpdateRankEntity <T>(string key, params T[] dataList) where T : RankEntity, new()
 {
     return(RedisConnectionPool.TryUpdateRankEntity(key, dataList));
 }