/// <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));
        }
Example #2
0
 public bool TryReceive <T>(out List <T> dataList) where T : ISqlEntity, new()
 {
     return(RedisConnectionPool.TryGetEntity(_redisKey, _table, out dataList));
 }