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

Class DBCacheDependency

Establishes a relationship between an item stored in a distributed cache
and either a specific database table. This class cannot be inherited.

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

You can add items with dependencies to your application's cache with the specific overloads of Add and Insert methods.

When you add an item to an application's Cache object with DBCacheDependency, it monitors a specific database table so that when the table changes, items associated with the table 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.

Properties

Name Description
ConnectionString

A connection string that is required by the cache in order to connect with database.

PrimaryKey

Primary key of the item in database

Type DBDependencyType
Back to top Copyright © 2017 Alachisoft