NCache for Data Caching in .NET Framework/.NET
NCache provides a sample application for .NET Framework/.NET on GitHub. This section will guide you through setting up and using this sample application.
Before getting started with NCache in .NET Framework/.NET, take the following prerequisites under consideration:
- For .NET Framework, minimum required version is 4.0
- For .NET Core, minimum required version is 2.2
NCache Demonstration using Sample Application
Follow the steps mentioned here to see how NCache is used to perform various operations on your .NET Framework/.NET application's data.
Step 1: Download Sample from GitHub
Go to the NCache repository on GitHub and download the entire repository or the sample you are interested in.
Step 2: Launch the Project
Launch your .NET Framework/.NET sample application in Visual Studio 2022 or above.
Step 3: Configure Settings
After launching the project, locate and open the App.config file where you have to change the name of your cache to the one created before.
Step 4: Build and Run Sample
After configuring the cache settings, build the sample application for further use.
Step 5: Monitor NCache
Go to the NCache Management Center, and against the cache you have created previously, click on Monitor. You will see the counters dashboard projecting the change in the cache.