throw new InvalidOperationException(SR.GetString(SR.DataSourceCache_CacheMustBeEnabled));
}
- HttpRuntime.CacheInternal.Remove(key);
+ HttpRuntime.Cache.InternalCache.Remove(key);
}
throw new InvalidOperationException(SR.GetString(SR.DataSourceCache_CacheMustBeEnabled));
}
- return HttpRuntime.CacheInternal.Get(key);
+ return HttpRuntime.Cache.InternalCache.Get(key);
}
aggregateCacheDependency.Add(new CacheDependency[] { dependency });
}
- HttpRuntime.CacheInternal.UtcInsert(key, data, aggregateCacheDependency, utcAbsoluteExpiryTime, slidingExpiryTimeSpan);
+ HttpRuntime.Cache.InternalCache.Insert(key, data, new CacheInsertOptions() {
+ Dependencies = aggregateCacheDependency,
+ AbsoluteExpiration = utcAbsoluteExpiryTime,
+ SlidingExpiration = slidingExpiryTimeSpan
+ });
}