Configuration Methods
Collapse the table of content
Expand the table of content

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


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.


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.


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.


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.


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.


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.


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.


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

See Also

Community Additions

© 2016 Microsoft