Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider
1.1.1
Prefix Reserved
dotnet add package Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider --version 1.1.1
NuGet\Install-Package Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider -Version 1.1.1
<PackageReference Include="Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider" Version="1.1.1" />
paket add Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider --version 1.1.1
#r "nuget: Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider, 1.1.1"
// Install Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider as a Cake Addin #addin nuget:?package=Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider&version=1.1.1 // Install Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider as a Cake Tool #tool nuget:?package=Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider&version=1.1.1
How to use the CosmosDB OutputCache Provider
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.
Add the Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider NuGet package.
Use the NuGet package manager to install the Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider packages. This will add a reference to Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider.dll and add the following configuration into the web.config file.
<system.web>
<caching>
<outputCache defaultProvider="CosmosDBTableAsyncOutputCacheProvider">
<providers>
<add name="CosmosDBTableAsyncOutputCacheProvider" connectionStringName="StorageConnectionStringForOutputCacheProvider" tableName="[TableName]"
type="Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider.CosmosDBTableAsyncOutputCacheProvider, Microsoft.AspNet.OutputCache.CosmosDBTableAsyncOutputCacheProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</providers>
</outputCache>
</caching>
</system.web>
- TableName - The name of the table to use for the provider.
Now your applications will start using Async OutputCache Module with the CosmosDB OutputCache Provider.
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. |
-
- Azure.Data.Tables (>= 12.7.1)
- Microsoft.AspNet.OutputCache.OutputCacheModuleAsync (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.