Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

Developing for Azure Shared Caching

Updated: June 19, 2014

ImportantImportant
Please note the Azure Shared Caching service will be retired on September 1, 2014 and with it the Azure Silverlight-based portal. Once the Shared Caching service is retired, all remaining Shared Cache deployments will be deleted. Microsoft strongly encourages you to migrate at the earliest opportunity all existing Shared caches to either the Managed Cache Service (currently in GA) or to the new Azure Redis Cache (currently in Preview). For migration guidance, including guidance for migrating without making code changes, see Migrate from Shared Caching. For more information about the current Azure Cache offerings, see Azure Cache.

The topics in this section help you to get started developing applications that use the caching features of Microsoft Azure Shared Caching.

Before you can use Shared Caching, you must first provision a cache. For more information see How to: Create a Cache (Azure Shared Caching).

WarningWarning
You should not develop for both Microsoft AppFabric 1.1 for Windows Server and Microsoft Azure Cache on the same development machine. It is possible to mistakenly reference some of the Microsoft AppFabric 1.1 for Windows Server assemblies in the Global Assembly Cache. This could lead to incorrect or unexpected behavior.

Shared Caching Development Overview

If you want to access a cache from your .NET application, you must first configure your .NET project in Visual Studio. For more information, see How to: Prepare Visual Studio to use Azure Shared Caching. After your cache is provisioned and the Visual Studio project is prepared, you can then begin to use your cache in your .NET application. The following topics in this section describe this process. Note that ASP.NET applications can use caching for session state or output caching by simply changing the web.config file. But any applications, including ASP.NET, can programmatically access the cache using the caching API.

Both and Microsoft AppFabric 1.1 for Windows Server contain a similar set of APIs for caching. This includes using assemblies with the same name and the same Microsoft.ApplicationServer.Caching namespace. However, not all of the on-premises features apply to the cloud. For more information about the differences, see Differences Between Caching On-Premises and in the Cloud.

In This Section

See Also

Gruppinnehåll

Lägg till
Visa:
© 2014 Microsoft