• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Set-BridgeCacheMode

This PowerShell cmdlet enables users to change the mode of a cache participating in an NCache Bridge by setting it as Active or Passive. It is used in WAN replication scenarios to control the direction of data synchronization. An Active cache acts as the primary source and sends updates, while a Passive cache functions as a secondary replica that receives updates.

  • Windows PowerShell
  • Linux CLI
Set-BridgeCacheMode -Name -CacheFullName -Mode {Active | Passive} -Server [-Port] [-Credentials] [-NoLogo]

Examples

  • This command changes the mode of clustered cache demoCache.WestCoast to active mode.
Set-BridgeCacheMode -Name demoBridge -Server 20.200.20.11 -CacheFullName demoCache.WestCoast -Mode Active
  • This command changes the mode of clustered cache demoCache.WestCoast to passive mode.
Set-BridgeCacheMode -Name demoBridge -Server 20.200.20.11 -CacheFullName demoCache.WestCoast -Mode Passive
  • This command changes the mode of clustered cache demoCache.WestCoast to active mode using security credentials.
Set-BridgeCacheMode -Name demoBridge -Server 20.200.20.11 -CacheFullName demoCache.WestCoast -Mode Active -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 Bridge registered on the server. -
-CacheFullName* <String> Specifies the name of the clustered cache with its environment name that is to be added to the Bridge. -
-Mode* <BridgeCacheStateParam> Specifies the mode of the Bridge. Can be either Active or Passive. Active
-Server* <String> Specifies the server name where the NCache Bridge Service is running and a Bridge with the specified Bridge-name is registered. -
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False
-Port <Integer> Specifies the port on which the NCache Bridge Service is listening. 8260
-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. -
set-bridgecachemode -name -cachefullname -mode {Active | Passive} -server [-port] [-userid] [-password] [-nologo]

Examples

  • This command changes the mode of clustered cache demoCache.WestCoast to active mode.
set-bridgecachemode -name demoBridge -server 20.200.20.11 -cachefullname demoCache.WestCoast -mode Active
  • This command changes the mode of clustered cache demoCache.WestCoast to passive mode.
set-bridgecachemode -name demoBridge -server 20.200.20.11 -cachefullname demoCache.WestCoast -mode Passive
  • This command changes the mode of clustered cache demoCache.WestCoast to active mode using security credentials.
set-bridgecachemode -name demoBridge -server 20.200.20.11 -cachefullname demoCache.WestCoast -mode Active -userid john_smith -password pass123

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 Bridge registered on the server. -
-cachefullname* <String> Specifies the name of the clustered cache with its environment name that is to be added to the Bridge. -
-mode* <BridgeCacheStateParam> Specifies the mode of the Bridge. Can be either Active or Passive. Active
-server* <String> Specifies the server name where the NCache Bridge Service is running and a bridge with the specified bridge-name is registered. -
-nologo <SwitchParameter> Suppresses display of the logo banner. False
-port <Integer> Specifies the port on which the NCache Bridge Service is listening. 8260
-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. -

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top