Sdílet prostřednictvím


DataCacheFactory.GetDefaultCache Method

Returns the cache client corresponding to the default cache, an instance of the DataCache object.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As DataCacheFactory
Dim returnValue As DataCache

returnValue = instance.GetDefaultCache

Syntax

'Declaration
Public Function GetDefaultCache As DataCache
public DataCache GetDefaultCache ()
public:
DataCache^ GetDefaultCache ()
public DataCache GetDefaultCache ()
public function GetDefaultCache () : DataCache

Return Value

The cache client, an instance of the DataCache object.

Remarks

The default cache is automatically created when the caching features of Windows Server AppFabric is first configured. View which caches are present in your cache cluster using the Get-Cache command with the PowerShell based cache administration tool. For more information, see Cache Administration with PowerShell (Windows Server AppFabric Caching).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheFactory Class
DataCacheFactory Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26