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.
Examples
- 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 20.200.20.30 server node using port 8250.
Start-Cache -Name demoClusteredCache –Server 20.200.20.30 –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 |
---|---|---|---|
-Name* |
<String> |
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. | - |
-Server |
<String> |
Specifies the server name where NCache Service is running and the user wants to start the cache on that particular server node. | Local Machine |
-Port |
<Long> |
Specifies the management port on which the NCache server is listening if the server channel is not using the default port. | 8250 |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
See Also
Set up PowerShell Environment
Stop-Cache
Get-NCacheVersion
TroubleShooting