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)

Syntax

public static bool CreateNamedConfiguration(
    string clientName,
    DataCacheFactoryConfiguration config,
    bool useConnectionPool
)
public:
static bool CreateNamedConfiguration(
    String^ clientName,
    DataCacheFactoryConfiguration^ config,
    bool useConnectionPool
)
static member CreateNamedConfiguration : 
        clientName:string *
        config:DataCacheFactoryConfiguration *
        useConnectionPool:bool -> bool
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.

  • useConnectionPool
    Type: System.Boolean

    A value of true enables connection pooling.

Return Value

Type: System.Boolean

Returns Boolean.

Remarks

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.

See Also

DataCacheFactoryConfiguration Class
Microsoft.ApplicationServer.Caching Namespace

Return to top