Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
[SerializableAttribute] public sealed class AggregateCacheDependency : CacheDependency |
Visual Basic |
---|
<SerializableAttribute> _ Public NotInheritable Class AggregateCacheDependency _ Inherits CacheDependency |
Visual C++ |
---|
[SerializableAttribute] public ref class AggregateCacheDependency sealed : public CacheDependency |
Remarks
The AggregateCacheDependency class differs from the CacheDependency class in that it allows you to associate multiple dependencies of different types with a single cached item. For example, if you create a page that imports data from a SQL Server database table and an XML file, you can create a SqlCacheDependency object to represent a dependency on the database table and a CacheDependency to represent the dependency on the XML file. Rather than making an Cache.Insert method call for each dependency, you can create an instance of the AggregateCacheDependency class with each dependency added to it. You can then use a single Insert call to make the page dependent on the AggregateCacheDependency instance.
Inheritance Hierarchy
Alachisoft.NCache.Runtime.Dependencies..::..CacheDependency
Alachisoft.NCache.Runtime.Dependencies..::..AggregateCacheDependency