Example #1
0
		internal ReadOnlyCollection<BannerDataHolder> GetBannersSatsfyingQueryConditionsInTimeslot(Timeslot timeslot)
		{
			if (bannersSatsfyingQueryConditionsInTimeslot == null)
			{
				bannersSatsfyingQueryConditionsInTimeslot = Caching.Instances.Main.GetWithLocalCaching(
					"BannersSatsfyingQueryConditionsInTimeslot" + this.GetCacheKey() + timeslot.GetCacheKey(),
					() => GetBannersSatisfyingQueryConditions(),
					Time.Seconds(15),
					Timeslot.Duration
				);
			}
			return bannersSatsfyingQueryConditionsInTimeslot.AsReadOnly();
		}