Add-BridgeCache
This PowerShell cmdlet enables users to add an existing clustered cache to a specified NCache Bridge for WAN replication. It allows a cache to be associated with a defined environment and optionally configured in Active or Passive mode, enabling data synchronization, disaster recovery, and high availability across distributed cache clusters.
Add-BridgeCache -CacheName -Name -Environment -Server -CacheServer [-Mode {Active | Passive}] [-Port] [-NoLogo] [-Credentials]
Examples
- This command adds an existing clustered cache named demoCache to the Bridge demoBridge running on 20.200.20.11. The cache name will now be demoCache.WestCoast.
Add-BridgeCache -Name demoBridge -Server 20.200.20.11 -CacheName demoCache -CacheServer 20.200.20.12 -Environment WestCoast
- This command adds an existing clustered cache named demoCache to the Bridge demoBridge running on 20.200.20.11. The cache name will now be demoCache.WestCoast using security credentials.
Add-BridgeCache -Name demoBridge -Server 20.200.20.11 -CacheName demoCache -CacheServer 20.200.20.12 -Environment WestCoast -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 |
|---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the clustered cache to be added to the Bridge. Note: The cache must already exist on the source server. |
- |
-Name* |
<String> |
Specifies the name of the Bridge registered on the server. | - |
-Environment* |
<String> |
Specifies the clustered cache environment. Cache name and environment act as a unique identifier of Bridge cache. | - |
-Server* |
<String> |
Specifies the server name where the NCache Bridge Service is running and a Bridge with the specified Bridge-name is registered. | |
-CacheServer* |
<String> |
Specifies a server name where the NCache Service is running and a cache with the specified cache-name is registered. | - |
-Mode |
<BridgeCacheStateParam> |
Specifies the mode of the Bridge. Can be either Active or Passive. |
Active |
-Port |
<Integer> |
Specifies the port on which the NCache Bridge Service is listening. | 8260 |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-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. | - |