/// <summary> /// /// </summary> /// <param name="personalId"></param> /// <param name="dataList"></param> /// <returns></returns> protected bool TryLoadFromRedis(out List <T> dataList, string personalId = null) { string redisKey = string.IsNullOrEmpty(personalId) ? containerKey : string.Format("{0}_{1}", containerKey, personalId); SchemaTable schema = EntitySchemaSet.Get <T>(); return(RedisConnectionPool.TryGetEntity(redisKey, schema, out dataList)); }
public bool TryReceive <T>(out List <T> dataList) where T : ISqlEntity, new() { return(RedisConnectionPool.TryGetEntity(_redisKey, _table, out dataList)); }