The OracleCacheDependency object enables ASP.NET applications to invalidate cached items based on changes made in an Oracle database.
System.Object
System.Web.Caching.CacheDependency
Oracle.Web.Caching.OracleCacheDependency
// C# public sealed class OracleCacheDependency : CacheDependency
All public static methods are thread-safe, although instance members are not guaranteed to be thread-safe.
This class invalidates data that is cached by ASP.NET applications, based on changes in the Oracle database.
This feature uses the Oracle Database Change Notification feature.
The user must have the CHANGE NOTIFICATION privilege, which can be granted with the following SQL statement:
GRANT change notification TO username;
Namespace: Oracle.Web.Caching
Assembly: Oracle.Web.dll
Oracle Providers for ASP.NET Version: Oracle Providers for ASP.NET 2.0 and Oracle Providers for ASP.NET 4
See Also:
OracleCacheDependency members are listed in the following tables.
OracleCacheDependency Constructors
The OracleCacheDependency constructor is listed in Table 9-1.
Table 9-1 OracleCacheDependency Constructor
| Constructor | Description |
|---|---|
|
Instantiates a new instance of the |
OracleCacheDependency Properties
OracleCacheDependency properties are listed in Table 9-2.
Table 9-2 OracleCacheDependency Properties
| Properties | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
OracleCacheDependency methods are listed in Table 9-3.
Table 9-3 OracleCacheDependency Methods
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
Returns a unique identifier for the |
|
|
|
Inherited from |
|
|
Inherited from |
This constructor instantiates a new instance of the OracleCacheDependency class.
OracleCacheDependency(OracleCommand)
This constructor creates an instance of the OracleCacheDependency class.
See Also:
This constructor instantiates a new instance of the OracleCacheDependency class.
// C#
public OracleCacheDependency(OracleCommand cmd);
cmd
The OracleCommand object has the command text on which the change notification is based.
When this constructor is invoked, the OracleCacheDependency object is instantiated and the OracleCommand object is configured for change notification. When the supplied OracleCommand object is executed by the application, the change notification is registered and the OracleCacheDependency instance is notified when changes are detected on the server side.
OracleCacheDependency properties are listed in Table 9-4.
OracleCacheDependency methods are listed in Table 9-5.
Table 9-5 OracleCacheDependency Methods
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
Returns a unique identifier for the |
|
|
|
Inherited from |
|
|
Inherited from |
See Also: