/// <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); }
/// <summary> /// Get Properties with out caching /// </summary> /// <returns></returns> public List <PropertyItemModel> GetPropertiesWithoutCaching() { //Without caching return(SamplePropertyData.GetProperties()); }