• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Configure Custom Dependencies

Dependency evaluation is now separated from the main expiration manager. For this purpose, a separate extensible dependency manager is implemented whose worker threads are configurable from the NCache Service configuration files:

  • .NET: Alachisoft.NCache.Service.exe.config located in %NCHOME%/bin/service
  • .NET Core: Alachisoft.NCache.Service.dll.config located in %NCHOME%/bin/service
  • Linux: Alachisoft.NCache.Daemon.dll.config located in \opt\ncache\bin\service

  • The number of worker threads by default is 4. To change this number according to your need, the following changes are required in the Service config file:

    • <add key="NCacheServer.DependencyManagerWorkers" value="5" />
  • To change the number of BulkExtensibleDependeny items that are evaluated together (by default, this value is 25), make the following changes in the config file:

    • <add key="NCacheServer.ExtensibleDependencyBulkEvaluationThreshold" value="25" />
  • To change the number of items to be evaluated at a time in ExtensibleDependency (default value is 25 items), change the Service config file as follows:

    • <add key="NCacheServer.ExtensibleDependencyAtomicEvaluationThreshold" value="25" />
Note

After making changes to the NCache Service config file, restart the NCache service.

See Also

Custom Cache Dependencies
Sync Cache using Extensible Dependency
Sync Cache using Bulk Extensible Dependency
Sync Cache using Notify Extensible Dependency

Back to top Copyright © 2017 Alachisoft