Add Client to Cache
Cache clients are lightweight modules through which cache applications can connect to hosted cache servers. You can add local or remote client nodes to existing clustered cache(s) in NCache.
In order to get more detailed explanation of cache clients, please see the Cache Client section.
Step 1: Add Cache Client to Cache
Add-ClientNode cmdlet enables the user to add one or more client nodes to existing clustered cache(s).
This command adds a client node 220.127.116.11 to a cache named demoClusteredCache already existing on server node 18.104.22.168.
For more properties of this command you can refer to NCache PowerShell Reference.
Add-ClientNode -CacheName demoClusteredCache -Server 22.214.171.124 -ClientNode 126.96.36.199
If you have more than one IP address on a client machine, enter the IP address on which NCache service is running.
Step 2: Verify Addition of Cache Client
You can quickly run a Stress Test Tool that comes with NCache installation to verify that cache clients can make calls to cache servers. To start this test on the cache you just created, please execute Test-Stress in PowerShell:
Test-Stress -CacheName demoClusteredCache
This command starts making cache calls to the cache servers as Test-Stress simulates transactional load on the specified cache. You can monitor the cache performance using PerfMon counters in .NET and .NET Core for Windows.