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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNet.OutputCache.OutputCacheModuleAsync" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.AspNet.OutputCache.OutputCacheModuleAsync --version 1.0.3                
#r "nuget: Microsoft.AspNet.OutputCache.OutputCacheModuleAsync, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. 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>
  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Version Downloads Last updated
1.0.3 35,172 4/12/2023
1.0.2 155,212 8/28/2018
1.0.1 211,487 5/12/2017
1.0.0 1,784 12/6/2016