Share via


Configuration Methods (Windows Server AppFabric Caching)

Windows Server AppFabric offers the option to configure the cache client programmatically, or by using an application configuration file. This topic outlines the methods and class constructors used to programmatically configure the cache client. For more information about these settings, see Configuration Settings (Windows Server AppFabric Caching).

Method Description

DataCacheFactoryConfiguration

Used to programmatically configure a cache client. This includes information about the location of the cache hosts and options such as local caching. This object can be passed to the constructor of the DataCacheFactory object.

DataCacheFactory

The parameterized DataCacheFactory constructor allows you to programmatically configure your cache client. This is done by defining the properties of the cache client in a DataCacheFactoryConfiguration object and then passing that object to the constructor. Your cache-enabled application should minimize the number of DataCacheFactory objects it instantiates. Store the DataCacheFactory object in a variable that is available to all parts of the application that use the cache client.

DataCacheServerEndpoint

The DataCacheServerEndpoint constructor allows you to specify a cache host for your configuration. A list of DataCacheServerEndpoint objects are assigned to the Servers property of the DataCacheFactoryConfiguration object.

DataCacheLocalCacheProperties

The DatacacheLocalCacheProperties constructor allows you to set the properties for the cache client's local cache. The object is assigned to the LocalCacheProperties property of the DataCacheFactoryConfiguration object.

DataCacheNotificationProperties

The DataCacheNotificationProperties constructor allows you to configure notification settings for the cache client. This object is assigned to the NotificationProperties property of the DataCacheFactoryConfiguration object.

DataCacheSecurity

The DataCacheSecurity constructor allows you to configure security settings for how the client communicates with the cache cluster. This includes specifying a security mode with the DataCacheSecurityMode enumeration as well as a protection level with the DataCacheProtectionLevel enumeration. These settings should match the security properties of the cache cluster. This object is assigned to the SecurityProperties property of the DataCacheFactoryConfiguration object.

DataCacheTransportProperties

The DataCacheTransportProperties class supports modifying the settings that modifies the behavior of the communication between the cache client and cache cluster. This object is assigned to the TransportProperties property of the DataCacheFactoryConfiguration objct.

ChangeLogLevel

Specifies the level of tracing for the Event Tracing for Windows (ETW)-based log sink.

See Also

Concepts

Cache Notifications Methods (Windows Server AppFabric Caching)
Cache Clients and Local Cache (Windows Server AppFabric Caching)
Concurrency Methods (Windows Server AppFabric Caching)
Class Overview (Windows Server AppFabric Caching)
Basic Cache Methods (Windows Server AppFabric Caching)
Tag-Based Methods (Windows Server AppFabric Caching)
Using Configuration Methods (Windows Server AppFabric Caching)
Using Basic Cache Methods (Windows Server AppFabric Caching)
Windows Server AppFabric Caching Concepts