MSPetShop4 TableCacheDependency缓存的用法
IList<ProductInfo> da
// Check if the da
if (da
// If the da
da
// Create a AggregateCacheDependency object from the factory
AggregateCacheDependency cd = DependencyFacade.GetProductDependency();
// Store the output in the da
HttpRuntime.Cache.Add(key, da
}
是查询结果 da
写入缓存和相关关联 HttpRuntime.Cache.Add(key, da
类方法说明:
public Object Add ( string key, Object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback )