Back to Devexpress

DataCacheRoot.Configure(DataCacheConfiguration) Method

corelibraries-devexpress-dot-xpo-dot-db-dot-datacacheroot-dot-configure-x28-devexpress-dot-xpo-dot-db-dot-helpers-dot-datacacheconfiguration-x29.md

latest3.2 KB
Original Source

DataCacheRoot.Configure(DataCacheConfiguration) Method

Applies specified configuration settings to a cached data store.

Namespace : DevExpress.Xpo.DB

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public override void Configure(
    DataCacheConfiguration configuration
)
vb
Public Overrides Sub Configure(
    configuration As DataCacheConfiguration
)

Parameters

NameTypeDescription
configurationDataCacheConfiguration

A DataCacheConfiguration object containing cache configuration settings.

|

Remarks

Calling this method automatically resets table update information stored in the Root element.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Configure(DataCacheConfiguration) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XPO_how-to-create-a-data-caching-service-that-helps-improve-performance-in-distributed-e4932/CS/WcfService1/Service1.svc.cs#L17

csharp
DataCacheRoot dataCacheRoot = new DataCacheRoot(dataStore);
dataCacheRoot.Configure(new DataCacheConfiguration(DataCacheConfigurationCaching.InList, "Customer"));
MainDataStore = dataCacheRoot;

XPO_how-to-create-a-data-caching-service-that-helps-improve-performance-in-distributed-e4932/VB/WcfService1/Service1.svc.vb#L16

vb
Dim dataCacheRoot As DataCacheRoot = New DataCacheRoot(dataStore)
dataCacheRoot.Configure(New DataCacheConfiguration(DataCacheConfigurationCaching.InList, "Customer"))
MainDataStore = dataCacheRoot

See Also

Reset()

DataCacheRoot Class

DataCacheRoot Members

DevExpress.Xpo.DB Namespace