Configuration Methods
Microsoft AppFabric 1.1 for Windows Server 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.
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 |
|
The DatacacheLocalCacheProperties constructor allows you to set the properties for the cache client's local cache. The object is assigned to the |
|
The DataCacheNotificationProperties constructor allows you to configure notification settings for the cache client. This object is assigned to the |
|
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 |
|
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 |
|
Specifies the level of tracing for the Event Tracing for Windows (ETW)-based log sink. |
See Also
Concepts
Cache Notifications Methods
Cache Clients and Local Cache (AppFabric 1.1 Caching)
Concurrency Methods
Class Overview
Basic Cache Methods
Tag-Based Methods
Using Configuration Methods
Using Basic Cache Methods
AppFabric Caching Concepts (AppFabric 1.1 Caching)
2012-09-12