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

DataCacheNodeLocal Class

The Node element that is used to connect to a cached data store‘s Root or Node element located on the local host.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v20.2.dll

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

Declaration

public class DataCacheNodeLocal :
    DataCacheNode

Remarks

The DataCacheNodeLocal provides storage for the cache in cached data stores. It can be connected to a Root element (DataCacheRoot or MSSql2005SqlDependencyCacheRoot) or another Node (DataCacheNodeLocal or DataCacheNode). 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 using the DataCacheNode.TotalMemoryNotPurgeThreshold, DataCacheNode.TotalMemoryPurgeThreshold, and DataCacheNode.GlobalTotalMemoryPurgeThreshold properties derived from the DataCacheNode class. 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

Since the DataCacheNodeLocal caches only results of queries containing aggregate and group operations, we recommend that you use it in applications that cache query results on the local host as a data store. In that case, the DataCacheNodeLocal helps improve memory use, because simple queries are not cached. In all other cases, use of the DataCacheNode is recommended.

See Also