Data Caching in Python Sample Application
NCache provides a sample application for Python on GitHub. This section will guide you through setting up and using this sample Python application.
Important
Before getting started with NCache in Python, take the following prerequisites under consideration:
- Python version 3.5 or above.
- JDK 17 is installed.
- Microsoft visual c++ redistributed packege 2015 is installed.
- The Environment Variable for Java Home is set.
NCache Demonstration using Sample Application
Follow the steps mentioned here to see how NCache is used to perform various operations on your Python 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 Python sample application in a Python IDE of your choice. For example, PyCharm 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 cache name to the cache you 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 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.
See Also
Create Distributed Cache
Create Distributed Cache with Persistence
Use NCache for Python Pub/Sub Messaging
Use NCache for Node.js Application