Set-CacheConfiguration
This PowerShell cmdlet is used to update NCache configuration settings in the configuration file by modifying individual cache parameters using a configuration key and its value.
Set-CacheConfiguration -Name -Value -CacheName [-Server] [-Credentials] [-NoLogo]
Examples
- The following command updates the NCache configuration setting autostart to true for the cache demoCache on server 20.200.20.11.
Set-CacheConfiguration -Name autostart -Value true -CacheName demoCache -Server 20.200.20.11
- The following command updates the NCache configuration setting autostart to true for the cache demoCache on server 20.200.20.11 by using security credentials.
Set-CacheConfiguration -Name autostart -Value true -CacheName demoCache -Server 20.200.20.11 -Credentials (Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-Name* |
<String> |
Specifies the name of the NCache configuration setting to update. | - |
-Value* |
<String> |
Specifies the value of the cache configuration to update. | - |
-CacheName* |
<String> |
Specifies the name of the cache for which you want to update cache configuration. Note: The cache must already exist on the source server. |
- |
-Server |
<String> |
Specifies a server name where the NCache Service is running and a cache with the specified cache-name is registered, separated by commas, e.g., "20.200.20.11, 20.200.20.12". | IP of local machine |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |