Set-CacheConfiguration - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to update the NCache configuration settings in the config file.
Note
This feature is only available in NCache Enterprise and Professional.
Set-CacheConfiguration -Name -Value [-CacheName] [-Server] [Credentials]
Examples of Set-CacheConfiguration - PowerShell Cmdlet
The following PowerShell Cmdlet updates the NCache configuration setting Auto-Start 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 IPs 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 who has appropriate permissions at the node. | - |