Start-Cache through PowerShell
To start a single or multiple caches on a node (either locally or remotely), NCache provides a PowerShell cmdlet
Start-Cache, the syntax of which is shown below.
Start-Cache [-Name] [-Server] [-Port] [-NoLogo]
The parameters that
Start-Cache takes are explained below.
- The following command starts demoClusteredCache on the local server.
Start-Cache –Name demoClusteredCache
- The following command starts both demoClusteredCache and demoLocalCache on the local server.
Start-Cache –Name demoClusteredCache,demoLocalCache
- The following command starts the cache demoClusteredCache on the 188.8.131.52 server node using port 8250.
Start-Cache -Name demoClusteredCache –Server 184.108.40.206 –port 8250
Note: The parameters with an asterisk (*) with their names are the required parameters and the rest are optional.
|Parameters||Data Types||Description||Default Value|
||Specifies one or more name(s) of caches separated by comma which are registered on the server. Those cache(s) is/are started on the server. Note: Comma separated cache names are to be specified in case of multiple caches only.||-|
||Specifies the server name where NCache Service is running and the user wants to start the cache on that particular server node.||Local Machine|
||Specifies the management port on which the NCache server is listening if the server channel is not using the default port.||8250|
||Suppresses display of the logo banner.||False|