Ejemplo n.º 1
0
        /// <summary>
        /// The way 2: with in caching
        /// </summary>
        /// <returns></returns>
        public List <PropertyItemModel> GetCachingProperties2()
        {
            var obj = base.GetCachingData <List <PropertyItemModel> >(RedisKeys.PropertyDataList);

            if (obj == null)
            {
                obj = SamplePropertyData.GetProperties();
                base.SetDataToCache(RedisKeys.PropertyDataList, obj);
            }

            return(obj);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Get Properties with out caching
 /// </summary>
 /// <returns></returns>
 public List <PropertyItemModel> GetPropertiesWithoutCaching()
 {
     //Without caching
     return(SamplePropertyData.GetProperties());
 }