Set-CacheConfiguration
This PowerShell cmdlet enables the user to update the NCache configuration settings in the config file.
Note
This feature is also available in the NCache Community Edition.
Set-CacheConfiguration -Name -Value -CacheName [-Server] [Credentials]
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
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. | - |
-Server |
<String> |
Specifies the NCache server names where cache is configured, separated by commas, e.g., "20.200.20.11, 20.200.20.12". | - |
-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. | - |