DataCache Constructor (String, String)

 

Creates a DataCache that accesses the specified cache name; uses settings in the named cache client configuration.

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

Syntax

public DataCache(
    string cacheName,
    string clientConfigurationName
)
public:
DataCache(
    String^ cacheName,
    String^ clientConfigurationName
)
new : 
        cacheName:string *
        clientConfigurationName:string -> DataCache
Public Sub New (
    cacheName As String,
    clientConfigurationName As String
)

Parameters

  • cacheName
    Type: System.String

    The named cache to use. For Windows Azure Shared Caching, this must be "default".

  • clientConfigurationName
    Type: System.String

    The cache client configuration to use to initialize the DataCache object.

See Also

DataCache Overload
DataCache Class
Microsoft.ApplicationServer.Caching Namespace

Return to top