When it comes to managing environments, there are two types of people in the world: those who love to type commands, and those who love GUI. NCache got both these factions covered. To monitor NCache and your deployed cache servers and bridge, you have management PowerShell tools for the typists and NCache Web Manager for those who prefer visuals.
PowerShell Tools for NCache Management
Windows PowerShell and NCache go hand in hand owing to their native .NET nature. PowerShell provides you with a command-line platform and scripting languages while NCache provides various powerful tools for automating cache management. What are these tools that I speak of? Let’s find out.
Manage Cache Through PowerShell Tools
NCache provides various PowerShell cmdlets to manage your local and clustered caches. These cmdlets help you perform management operations that give you control over your caches. Let’s see some cmdlets for some of the basic cache operations.
Note: You need to run the following command in case the NCache PowerShell cmdlets do not work.
The New-Cache Cmdlet
To manage a cache, you need to create a cache first. So, all command lovers, hear ye, the New-Cache cmdlet allows you to create a new cache on one or more server nodes. This is the command you are looking for:
The Start-Cache Cmdlet
After creating a cache, you need to start the created cache. The Start-Cache cmdlet, as the name suggests, starts cache against the registered user. You can simply start the cache on your local server by providing the name of your cache as a parameter with the Start-Cache tool like this:
The Stop-Cache Cmdlet
Just like you have a tool to start cache on one or multiple caches, you have a tool to stop cache as well. The Stop-Cache cmdlet allows you to stop cache on any server that you want.
The Clear-Cache Cmdlet
Following the above chain of deployment, what comes next is how you clear the contents of the cache. The Clear-Cache cmdlet allows you to remove all items currently present in the mentioned cache.
The Remove-Cache Cmdlet
When it’s time for you to remove a cache, you have the Remove-Cache cmdlet that removes the cache’s existence from your application, local machine, remote machine, everywhere. This is all it takes to perform such a drastic operation.
Manage Bridge Through PowerShell Tools
Bridge is the essence of disaster recovery plan. Bridge for WAN replication not only saves you from hitting rock bottom (pun intended), but it also serves the purpose of deploying your application on geographically separated regions for a massive grid of customers. Are you starting to see the value a Bridge brings to the table? Now, let’s see how you can manage a treasure such as this.
The New-Bridge Cmdlet
NCache provides the New-Bridge cmdlet that, when executed, creates a bridge on one or more cache server nodes.
The Start-Bridge Cmdlet
After creating a bridge, you can start it by executing the Start-Bridge command. This command, when executed, starts the bridge implementation on the server that you specify. If the command is executed successfully, you will be notified like this:
The Stop-Bridge Cmdlet
In case you want to stop a bridge on a specific server for a while, NCache provides the Stop-Bridge cmdlet.
This stopped state is temporary, you can always start the bridge again and it will work the exact same way it did before.
The Remove-Bridge Cmdlet
The Remove-Bridge cmdlet, as the name suggests, removes bridge from the specified server. This command is for when you do not have a need for bridge on a specific server.
NCache Web Manager for NCache Management
To all those who would rather sit back and click buttons, NCache provides an NCache Web Manager that is the prettier web-based version of all the commands discussed above. What you have here is a platform to create and manage local caches, clustered caches, and bridges all through a simple, easy to understand .NET Core based UI. To sell my point, I will take you on a little tour discussing various cache and bridge management operations that you can perform using the NCache Web Manager.
Manage Cache Through NCache Web Manager
Managing a cache through commands is faster and let’s admit, it’s pretty cool. But managing a cache through NCache Web Manager is easier and friendlier. It is more convenient to be able to see via visuals the management operations being performed on the caches. If that’s your cup of tea, then NCache got you covered.
Create a Cache
First off, to start managing a cache, you need to create a cache. NCache Web Manager provides an easy way to create a new cache. Instead of boring you with the steps of how you do this magic trick, I’m going to show the process using a GIF.
Start a Cache
You are not going to get anything out of an idle cache unless you start it. Starting a cache using the NCache Web Manager is easier than creating it. There is less clicking of buttons, less navigation, and definitely no typing. Here’s how you start a cache.
Stop a Cache
Done with playing around with a cache? Want to give the cache a little break? NCache allows you to stop any cache you want, whenever you want it. The NCache Web Manager makes this process very simple for you. You select the cache cluster (or even a single node cache) that you want to stop cache service on, click on the Stop button, and voila! It’s done.
Clear a Cache
NCache Web Manager allows you clear all contents of the cache in case you want to start anew. Any keys, values, data structures, JSON objects, basically anything that the cache had stored for you will be removed once you clear the cache. The GIF here shows how the NCache Web Manager lets you clear all contents of the caches in a cache cluster.
Remove a Cache
I know. It sounds a bit harsh but sometimes the situation calls for you to say goodbye to the cache you created. But don’t worry, the NCache Web Manager makes this process easier for you, like ripping the band aid off. The GIF below shows how to remove a cache using the NCache Web Manager.
Manage Bridge Through NCache Web Manager
Just like you had PowerShell cmdlets to create and manage bridges in your environment, you have an entire NCache Web Manager platform dedicated for bridge management. NCache provides an easy-to-use and understand user interface comprising of various management operations that you could perform on a bridge. Let’s go through these operations.
Create a Bridge
What you need to create a bridge through the NCache Web Manager is to launch the manager and navigate your way to the Bridge section. Creating a bridge through NCache Web Manager could not get any easier than this.
Start a Bridge
Creating a bridge alone is no fun. To start using this amazing feature for WAN replication, you should start the created bridge. Here’s what you need to click to start your bridge through NCache Web Manager.
Stop a Bridge
Stopping a bridge through NCache Web Manager is exactly like how you started it. The same selection, clicking of buttons and waiting.
Remove a Bridge
We are not going to talk about why you would want to remove a bridge but in a case where the need arises, launch your NCache Web Manager and do this:
What Did This Blog Teach You?
Here’s a summary of what this blog is all about.
- You have cache servers and bridges that need management.
- To manage these, you have NCache PowerShell Cmdlets and NCache Web Manager. You have a choice whether you want to execute commands or click and drag.
- There are way too many management operations that you can perform on both these sections like create, start, stop, clear, remove, etc.
- If you are the one managing NCache for your .NET/.NET Core application, then you lucked out with NCache that provides an easy-to-understand, fast, and user-friendly way of performing management operations.
To understand more on how to perform management operations using PowerShell cmdlets or NCache Web Manager, follow our product guide on Cache Management Operations and Bridge Management Operations. The only pre-requisite is for you to have NCache installed. So, stop thinking and download NCache now, and thank me later.