Microsoft.AspNet.OutputCache.OutputCacheModuleAsync
1.0.3
Prefix Reserved
dotnet add package Microsoft.AspNet.OutputCache.OutputCacheModuleAsync --version 1.0.3
NuGet\Install-Package Microsoft.AspNet.OutputCache.OutputCacheModuleAsync -Version 1.0.3
<PackageReference Include="Microsoft.AspNet.OutputCache.OutputCacheModuleAsync" Version="1.0.3" />
paket add Microsoft.AspNet.OutputCache.OutputCacheModuleAsync --version 1.0.3
#r "nuget: Microsoft.AspNet.OutputCache.OutputCacheModuleAsync, 1.0.3"
// Install Microsoft.AspNet.OutputCache.OutputCacheModuleAsync as a Cake Addin #addin nuget:?package=Microsoft.AspNet.OutputCache.OutputCacheModuleAsync&version=1.0.3 // Install Microsoft.AspNet.OutputCache.OutputCacheModuleAsync as a Cake Tool #tool nuget:?package=Microsoft.AspNet.OutputCache.OutputCacheModuleAsync&version=1.0.3
How to use the Async OutputCache Module
Target your application to 4.6.2+.
The OutputCacheProviderAsync interface was introduced in .NET Framework 4.6.2, therefore you need to target your application to .NET Framework 4.6.2 or above in order to use the Async OutputCache Module. Download the .NET Framework 4.6.2 Developer Pack if you do not have it installed yet and update your application�s web.config targetFrameworks attributes as demonstrated below:
<system.web>
<compilation debug="true" targetFramework="4.6.2"/>
<httpRuntime targetFramework="4.6.2"/>
</system.web>
Add the Microsoft.AspNet.OutputCache.OutputCacheModuleAsync NuGet package.
Use the NuGet package manager to install the Microsoft.AspNet.OutputCache.OutputCacheModuleAsync package. This will add a reference to the Microsoft.AspNet.OutputCache.OutputCacheModuleAsync.dll and add the following configuration into the web.config file.
<system.webServer>
<modules>
<remove name="OutputCache"/>
<add name="OutputCache" type="Microsoft.AspNet.OutputCache.OutputCacheModuleAsync, Microsoft.AspNet.OutputCache.OutputCacheModuleAsync" preCondition="integratedMode"/>
</modules>
</system.webServer>
Now your applications will start using Async OutputCache Module. If no outputcacheprovider is specified in web.config, the module will use a default synchronous in-memory provider, with that you won�t get the async benefits. Please consider using one of the OutputCache providers that builds on this package, or implement an async OutputCache Provider of your own.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Microsoft.AspNet.OutputCache.OutputCacheModuleAsync:
Package | Downloads |
---|---|
Microsoft.Web.RedisOutputCacheProvider
Custom output cache provider for redis cache. |
|
Hawk.CacheEx
缓存扩展库 |
|
Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider
Async version SQL OutputCache Provider |
|
Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider
In .Net 4.6.2, asp.net enables developer plug in async version of OutputCache module which is a good fit for the non-in-memory OutputCache data store. This OutputCache provider can use both CosmosDB(table model) and Azure storage table as the data store and leverages async operation to provide better scability. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Microsoft.AspNet.OutputCache.OutputCacheModuleAsync:
Repository | Stars |
---|---|
Azure/aspnet-redis-providers
ASP.NET Redis Providers
|