Distributed Caching with NCache in ASP.NET Core
In this article, let's look at how we can implement distributed caching in ASP.NET Core, with NCache as the caching provider.
In general, there are two modes in which an ASP.NET Core application can run, when deployed in IIS.
In-Process model:
Out-Of-Process model:
How do you specify?
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
<AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
</PropertyGroup>
.... other config ....
</Project>