Add Local/Remote Clients to Cache
A client is your web or application server. This can be either local or remote client. You can configure a web/app server as a cache client in NCache Professional using PowerShell.
Pre-requisite
Have a look at supported browsers and other configurations for Web Manager here.
For .NET, make sure NCache Service (NCacheSvc) is started. If it is not started, type the following command in PowerShell (run as admin):
Start-Service -Name NCacheSvc
- For .NET Core, run NCache Service (NCacheSvc) as Administrator. Please refer to this section for detail.
Using NCache Web Manager
Launch NCache Web Manager by browsing to
http://localhost:8251
(Windows) or<server-ip>:8251
(Windows + Linux).In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to which the client will be added. Against the cache name, click on View Details.
This opens up the detailed configuration page for the cache. The Client Nodes tab displays a list and status of any existing client nodes of the cache.
Click on the button and specify the client node IP. Click on + to add it to the cache. A success notification will be displayed.
- The newly added node is displayed in the Client Nodes list, with client cache status.
Using PowerShell
Add-ClientNode cmdlet enables the user to add one or more client nodes to existing clustered cache(s).
This command adds a Client node 20.200.20.29 to demoCache already existing on server node 20.200.20.200.
Add-ClientNode -CacheName demoCache -Server 20.200.20.200 -ClientNode 20.200.20.29
See Also
Simulate Cache Usage
Monitor Caches in PerfMon
Use NCache for Data Caching
NCache Programmer's Guide
NCache PowerShell Guide