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)); }
/// <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)); }