Skip to main content
A newer version of this page is available. .

DataCacheNode Class

The Node element that is used to connect to a cached data store‘s Root or Node element.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v20.2.dll

NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data

Declaration

public class DataCacheNode :
    DataCacheBase

Remarks

The DataCacheNode provides storage for the cache in cached data stores. It can be connected to a Root element (DataCacheRoot or MSSql2005SqlDependencyCacheRoot) or another Node (DataCacheNode or DataCacheNodeLocal). To connect a newly created Node to a parent element (Root or Node), pass the parent element as the Node’s constructor parameter.

You can specify memory use limits for applications exploiting cached data stores via the DataCacheNode.TotalMemoryNotPurgeThreshold, DataCacheNode.TotalMemoryPurgeThreshold, and DataCacheNode.GlobalTotalMemoryPurgeThreshold properties. To designate tables to be cached, pass a DataCacheConfiguration instance to the Root’s DataCacheRoot.Configure method (for the MSSql2005SqlDependencyCacheRoot, use the corresponding MSSql2005SqlDependencyCacheRoot.CreateSqlDependencyCacheRoot overloaded method).

Note

We recommend that you use the DataCacheNode for caches that are physically separated from a data store. For instance, in distributed applications, the DataCacheNode is perfect for clients that individually cache query results. If a data store and its cache are located on the same computer, we recommend that you use the DataCacheNodeLocal for the cache, to improve memory use.

See Also