Clear Cache
Clearing the cache is a critical administrative task for emptying distributed data and resetting the cache state without removing the cache configuration. NCache provides two primary methods to clear cache contents: a GUI-based approach via the NCache Management Center and an automated approach using Command Line tools. This process effectively removes all items from the specified cache, ensuring a fresh environment for testing or data synchronization.
Method 1: Clear Cache via NCache Management Center (GUI)
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251.In the left navigation bar, click on Local Caches or Clustered Caches based on the cache to be removed. This opens up a new page. It shows any existing local or clustered caches and additional details like Server and Server Platform.
Click on the "..." button against the cache name.
Click on Clear Contents from the options.
- A message will be prompted on the screen on clearing cache contents.

- On successful cache clear, a notification will show that the cache is successfully cleared.
Method 2: Clear Cache using PowerShell or Linux CLI
The Clear-Cache tool enables the user to clear the cache by removing all the items currently present in the cache. The following command clears the items present in the cache named demoCache forcefully.