Configuration Methods (Velocity)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Microsoft project code named "Velocity" 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 information about the settings that you can configure with these methods, see, Configuration Settings (Velocity).
Note
The cache cluster can be accessed by any cache client that has network connectivity to the cluster and the appropriately configured application configuration settings. For this reason, we highly recommend that you secure your application's cache client configuration settings.
Method | Description |
---|---|
The parameterized DataCacheFactory constructor allows you to programmatically configure your cache client. By using this constructor, you can specify cache hosts, select a simple or routing client, and enable local cache. 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 the first parameter of the parameterized DataCacheFactory constructor. |
|
This static method is used to enable one or more log sinks on the cache client. |
|
The DataCacheLogSink class constructor allows you to specify an individual console, file, or Event Tracing for Windows (ETW)-based log sink. The corresponding log sinks are enabled by passing a list of them to the CreateLogSinks method. |
|
This static method enables all three kinds of log sinks on the cache client: console, file, and ETW-based with a trace level set to |
|
This static method disables all log sinks on the cache client. |
See Also
Concepts
Cache Notifications Methods (Velocity)
Cache Clients and Local Cache (Velocity)
Concurrency Methods (Velocity)
Class Overview (Velocity)
Basic Cache Methods (Velocity)
Tag-Based Methods (Velocity)
Other Resources
Configuring the Cache Client with XML (Velocity)
Using Configuration Methods (Velocity)
Using Basic Cache Methods (Velocity)
Cache Concepts (Velocity)