August 2017
Intermediate to advanced
330 pages
7h 26m
English
We will be using SQL Server for distributed cache; even Redis can also be used. To use SQL Server, use NuGet install the following packages:
Microsoft.Extensions.Caching.SqlServer: 2.0.0-preview2-final
To use the sql-cache tool, add SqlConfig.Tools to the <ItemGroup> element of the .csproj file and run dotnet restore (optional):
<DotNetCliToolReference Include="Microsoft.Extensions.Caching.SqlConfig.Tools" Version=" 2.0.0-preview2-final" />
Once this is done, verify that SQL tools for cache works fine by running the following command from the root folder of the project:
dotnet sql-cache create -help
After that, run the following command to create a Democache table in the PacktDistCache database, ...
Read now
Unlock full access