Try Playground
Show / Hide Table of Contents

Stop-Cache - PowerShell Cmdlet

This PowerShell Cmdlet enables users to stop the cache on a specified server as well as stop a cache gracefully. It also enables the users to stop multiple caches on specified server.

Important

NCache OSS has different parameters in some Cmdlet instances.

  • Windows PowerShell
  • Linux CLI
Stop-Cache [-Name] [-IsGracefulStop] [-Port] [-Server] [-IsStopForMaintenance] [-Timeout] [-Credentials] [-NoLogo]

Examples of Stop-Cache - PowerShell Cmdlet

  • This command stops the cache named demoCache on local server using port 8250.
Stop-Cache –Name demoCache
  • This command stops the cached named demoCache on server node 20.200.20.11 using default port 8250.
Stop-Cache –Name demoCache –Server 20.200.20.11
  • This command stops cache demoCache gracefully existing on server 20.200.20.11.
Stop-Cache -Name demoCache -Server 20.200.20.11 -IsGracefulStop
  • This command stops cache for maintenance demoCache existing on server 20.200.20.11 for a 30 minutes time period.
Stop-Cache -Name demoCache -Server 20.200.20.11 -IsStopForMaintenance -Timeout 30
  • This command stops demoCache on severs 20.200.20.11 and 20.200.20.12.
Stop-Cache -Name demoCache -Server "20.200.20.11,20.200.20.12"

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 one or more name(s) of caches separated by comma which are registered on the server. Those cache(s) is/are stopped on the server.
Note: Comma separated cache names are to be specified in case of multiple caches only.
-
-IsGracefulStop <SwitchParameter> Specifies if the server should be stopped gracefully, ensuring all background operations complete to avoid data loss. Without this, the server stops forcefully, risking operation loss. False
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False
-Port <Integer> Specifies the management port on which the NCache server is listening if the server channel is not using the default port. 8250
-Server <String> Specifies the server name where NCache Service is running and the user wants to stop the cache on that particular server node Local Machine
-IsStopForMaintenance <SwitchParameter> Specifies if the cache is stopping for maintenance. False
-Timeout <Integer> Specifies the time interval for which cache is going under maintenance. The value must range from 0 to 600. 0
-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. -
stop-cache [-name] [-isgracefulstop] [-port] [-server] [-isstopformaintenance] [-timeout] [-userid] [-password] [-nologo]

Examples of Stop-Cache

  • This command stops the cache named demoCache on local server using port 8250.
stop-cache -name demoCache
  • This command stops the cached named demoCache on server node 20.200.20.11 using default port 8250.
stop-cache -name demoCache -server 20.200.20.11
  • This command stops cache demoCache gracefully existing on server 20.200.20.11
stop-cache -name demoCache -server 20.200.20.11 -isgracefulstop
  • This command stops cache for maintenance demoCache existing on server 20.200.20.11 for a 30 minutes time period.
stop-cache -name demoCache -server 20.200.20.11 -isstopformaintenance -timeout 30
  • This command stops demoCache on severs 20.200.20.11 and 20.200.20.12.
stop-cache -name demoCache -server "20.200.20.11,20.200.20.12"

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 one or more name(s) of caches separated by comma which are registered on the server. Those cache(s) is/are stopped on the server.
Note: Comma separated cache names are to be specified in case of multiple caches only.
-
-isgracefulstop <SwitchParameter> Specifies if the server should be stopped gracefully, ensuring all background operations complete to avoid data loss. Without this, the server stops forcefully, risking operation loss. False
-nologo <SwitchParameter> Suppresses display of the logo banner. False
-port <Integer> Specifies the management port on which the NCache server is listening if the server channel is not using the default port. 8250
-server <String> Specifies the server name where NCache Service is running and the user wants to stop the cache on that particular server node Local Machine
-isstopformaintenance <SwitchParameter> Specifies if the cache is stopping for maintenance. False
-timeout <Integer> Specifies the time interval for which cache is going under maintenance. The value must range from 0 to 600. 0
-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. -
In This Article
  • Examples of Stop-Cache - PowerShell Cmdlet
  • Properties
  • Examples of Stop-Cache
  • Properties

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • 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 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top