Use NCache for Data Caching in Scala
NCache provides a sample application for Scala on GitHub. This section will guide you through setting up and using this sample application.
Important
Before getting started with NCache in Scala, take the following prerequisites under consideration:
- JDK 11 is installed.
- The Environment Variable for Java is set.
NCache Demonstration using Sample Application
Follow the steps mentioned here to see how NCache is used to perform various operations on your Scala application's data.
Step 1: Download Sample from GitHub
Go to NCache repository on GitHub and download the entire repository or the sample you are interested in.
Step 2: Launch the Project
Launch your Scala sample application in a Scala IDE of your choice. For example, IntelliJ 2019 or above.
Step 3: Configure Settings
After launching the project, locate and open the app.config.json file where you have to change the cacheName
to the cache you created before.
Step 4: Build Project and Use Sample
After configuring the cache settings, build the sample application for further use.
Step 5: Monitor NCache
Go to NCache Web Manager, and against the cache you have created previously, click on Monitor. You will see the counters dashboard projecting the change in the cache.
See Also
Create Distributed Cache
Create NoSQL Database
Use NCache for ASP.NET Core Caching
Use NCache for NodeJs Application