Establishes a relationship between an item stored in an application's Cache object
and either a row in a specific Oracle database table or
the results of a Oracle query.
This class can not be inherited.
Namespace: Alachisoft.NCache.Runtime.DependenciesAssembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
[SerializableAttribute] public sealed class OracleCacheDependency : CacheDependency |
Visual Basic |
---|
<SerializableAttribute> _ Public NotInheritable Class OracleCacheDependency _ Inherits CacheDependency |
Visual C++ |
---|
[SerializableAttribute] public ref class OracleCacheDependency sealed : public CacheDependency |
Remarks
You can add items with dependencies to your application's cache with the
[!:Cache.Add] and Add,Insert, AddDependency methods.
When you add an item to an application's [!:Cache] object with OracleCacheDependency, on all ODP.NET supported versions of Oracle database, it monitors a row in a specific Oracle database table so that when that row changes, items associated with the row will be automatically removed from the Cache. This helps you avoid losing changes made to the object between the time it is created and the time it is inserted into the [!:Cache]. OracleCacheDependency class supports the association of cached items with a Oracle query.
Inheritance Hierarchy
System..::..Object
Alachisoft.NCache.Runtime.Dependencies..::..CacheDependency
Alachisoft.NCache.Runtime.Dependencies..::..OracleCacheDependency
Alachisoft.NCache.Runtime.Dependencies..::..CacheDependency
Alachisoft.NCache.Runtime.Dependencies..::..OracleCacheDependency