NCache For Distributed Lucene Cache
NCache provides integration for Lucene, which is a high-performance search engine for text searching that performs searches on texts according to your business requirements. Each server of NCache has a dedicated Lucene module. This makes Lucene distributed, scalable, and highly available with NCache.
Important
Before getting started with NCache in .NET, take the following prerequisites under consideration:
- For .NET Framework, minimum required version is 4.6.1.
- For .NET, 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 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 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.
See Also
Create Distributed Cache
Create Distributed Cache with Persistence
Use NCache for ASP.NET Core Sessions