DataCacheFactoryConfiguration.CreateNamedConfiguration Method (String, DataCacheFactoryConfiguration, Boolean)
Create a new cache client configuration.
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Public Shared Function CreateNamedConfiguration ( clientName As String, config As DataCacheFactoryConfiguration, useConnectionPool As Boolean ) As Boolean
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.
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.
Show: