Try Playground
Show / Hide Table of Contents

Set-NCServiceConfigSetting

The Set-NCServiceConfigSetting cmdlet is used to add or update a key-value pair in the Alachisoft.NCache.Service.dll.config file on NCache servers. If the configuration change is hot-applicable, it will be applied immediately without requiring a service restart.

  • Windows PowerShell
  • Linux CLI
Set-NCServiceConfigSetting -Key [-Value] [-Server] [-Credentials]

Examples of Set-NCServiceConfigSetting

  • This command sets the NCacheServer.EventBulkCount key-value pair in the Alachisoft.NCache.Service.dll.config file as per your requirement.
Set-NCServiceConfigSetting -Key NCacheServer.EventBulkCount -Value 50
  • This command sets the NCacheServer.EnableCacheLastAccessCount key-value pair in the Alachisoft.NCache.Service.dll.config file on the server 20.200.20.11.
Set-NCServiceConfigSetting -Key NCacheServer.EnableCacheLastAccessCount -Value false -Server 20.200.20.11
  • This command sets the NCacheServer.EnableCommandThresholdLogging key-value pair in the Alachisoft.NCache.Service.dll.config file as per your requirement.
Set-NCServiceConfigSetting -Key NCacheServer.EnableCommandThresholdLogging -Value false

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-Server <String> Specifies one or more IP addresses of NCache server(s) where the configuration change should be applied. Note: For multiple servers, provide comma-separated IP addresses inside double quotes. -
-Credentials <pscredential> Specifies the user credentials used to authorize the user for this operation. It is required in case security is enabled on cache server. The password must be the same as the active directory user password. The user id must be the same as the active directory user id. -
-Key* <String> Specifies the key to be added or updated in the Alachisoft.NCache.Service.dll.config file. -
-Value* <String> Specifies the value to associate with the specified key. -
set-ncserviceconfigsetting -key [-value] [-server] [-userid] [-password]

Examples of Set-NCServiceConfigSetting

  • This command sets the NCacheServer.EventBulkCount key-value pair in the Alachisoft.NCache.Daemon.dll.config as per your requirement.
set-ncserviceconfigsetting -key NCacheServer.EventBulkCount -value 50
  • This command sets the NCacheServer.EnableCacheLastAccessCount key-value pair in the Alachisoft.NCache.Daemon.dll.config on the server 20.200.20.11.
set-ncserviceconfigsetting -key NCacheServer.EnableCacheLastAccessCount -value false -server 20.200.20.11
  • This command sets the NCacheServer.EnableCommandThresholdLogging key-value pair in the Alachisoft.NCache.Daemon.dll.config as per your requirement.
set-ncserviceconfigsetting -key NCacheServer.EnableCommandThresholdLogging -value false

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-server <String> Specifies one or more IP addresses of NCache server(s) where the configuration change should be applied. Note: For multiple servers, provide comma-separated IP addresses inside double quotes. -
-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. -
-key* <String> Specifies the key to be added or updated in the Alachisoft.NCache.Daemon.dll.config file. -
-value* <String> Specifies the value to associate with the specified key. -
In This Article
  • Examples of Set-NCServiceConfigSetting
  • Properties
  • Examples of Set-NCServiceConfigSetting
  • 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