• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Class OracleCacheDependency

Establishes a relationship between an item stored in a distributed cache
and either a row in a specific Oracle database table or the results of a Oracle query. This class can not be inherited.

Inheritance
System.Object
CacheDependency
OracleCacheDependency
Inherited Members
CacheDependency.AddDependencies(CacheDependency[])
CacheDependency.Dependencies
CacheDependency.Dispose()
CacheDependency.DependencyDispose()
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public sealed class OracleCacheDependency : CacheDependency, IDisposable
Remarks

Legacy API has support for adding items with dependencies to your cache with the AddDependency APIs.

When you add an item to cache 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.

Constructors

Name Description
OracleCacheDependency(String, String)

Initializes a new instance of the OracleCacheDependency class, using the supplied connection string and query string.

OracleCacheDependency(String, String, OracleCommandType, Dictionary<String, OracleCmdParams>)

Initializes a new instance of the OracleCacheDependency class. It supports the use of stored procedures.

Properties

Name Description
CommandParams

Describes the type of the parameters passed to the Oracle command.

CommandText

Query text/ stored procedure name to be used to set dependency.

CommandType

Describes the type of the Oracle command passed to the OracleDependency.

ConnectionString

Connection String that is required by the cache in order to connect with database.

Back to top Copyright © 2017 Alachisoft