DataCacheFactoryConfiguration.CreateNamedConfiguration Method (String, DataCacheFactoryConfiguration, Boolean)

 

Create a new cache client configuration.

Namespace:   Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public static bool CreateNamedConfiguration(
	string clientName,
	DataCacheFactoryConfiguration config,
	bool useConnectionPool
)

Parameters

clientName
Type: System.String

The name of the new cache client configuration.

config
Type: Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration

A DataCacheFactoryConfiguration object that contains the settings for the new client configuration.

useConnectionPool
Type: System.Boolean

A value of true enables connection pooling.

Return Value

Type: System.Boolean

Returns Boolean.

This method creates a new cache client configuration in memory with the specified name. To use this new configuration, you must create a new DataCacheFactoryConfiguration object. Specify the name of the new cache client configuration in the constructor.

Return to top
Show: