Set Cache Configuration
This enables the user to update the NCache configuration settings in the config file.
Set-CacheConfiguration -Name -Value [-CacheName] [-Server] [Credentials]
Examples
- The following command 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. |
- |
set-cacheconfiguration -name -value [-cachename] [-server] [-userid] [-password]
Examples
- This command Update Cache Configuration Auto-Start to true of 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. |
- |
-userid |
<string> |
Specifies the user id used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This user id must be the active directory user id. |
- |
-password |
<string> |
Specifies the password of the user that is used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This password must be the same as the active directory user password. |
- |