NCache.Quartz 5.3.800

dotnet add package NCache.Quartz --version 5.3.800
                    
NuGet\Install-Package NCache.Quartz -Version 5.3.800
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NCache.Quartz" Version="5.3.800" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NCache.Quartz" Version="5.3.800" />
                    
Directory.Packages.props
<PackageReference Include="NCache.Quartz" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NCache.Quartz --version 5.3.800
                    
#r "nuget: NCache.Quartz, 5.3.800"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NCache.Quartz@5.3.800
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NCache.Quartz&version=5.3.800
                    
Install as a Cake Addin
#tool nuget:?package=NCache.Quartz&version=5.3.800
                    
Install as a Cake Tool

NCache Quartz Integration

NCache Enterprise integration for Quartz.NET. This package is a Quartz IJobStore implementation that keeps jobs, triggers, calendars and scheduler state in an NCache cluster, so every scheduler instance in a web farm shares the same jobs through NCache.

Installation

Install-Package NCache.Quartz

or, using the .NET CLI:

dotnet add package NCache.Quartz

What is Installed

Installing this package adds the NCache Quartz job store and its dependencies to your project.

The integration uses the following NCache configuration files:

client.ncconf: Defines the cache client settings, including the cache name and the list of server nodes the client connects to.

config.ncconf: Contains the cache configuration (cache topology, partitions, eviction policy, etc.) used when the cache is created/registered.

These configuration files are not added to your project by this package. Add client.ncconf if your application needs its own client configuration; config.ncconf is used on the NCache server when creating/registering the cache.

Prerequisites

A .NET Framework 4.6.2+ or .NET 6+ application, using Quartz 3.19.1. Quartz 4 is not supported.

.NET Framework and .NET 6+ nodes can share one cluster. DateOnly and TimeOnly do not exist on .NET Framework: a DateOnly / TimeOnly JobDataMap value stored by a .NET 6+ node is read on a .NET Framework node as its ISO text ("2026-09-09", "13:45:10.2500000"). If the .NET Framework node stores that job or trigger again, the value stays text for every node.

An NCache Enterprise 5.3.800 server should be up and running, with the target cache already created/registered on it.

Getting Started

Setting up NCache

The client reads the server list from the NCache client configuration. If NCache is not installed on the current machine, add a client.ncconf to your application, copy it to the output directory and set the cache id to your cache name:

Example:

<configuration>
  <ncache-server port="9800" />
  <cache id="defaultCache" enable-client-logs="False" log-level="error">
    <server name="10.0.0.1" />
  </cache>
</configuration>

Change defaultCache to the name of your actual cache (the cache you created/registered on the NCache server), and 10.0.0.1 to the IP/hostname of a node hosting it. The connection is resolved from client.ncconf by cache name, so CacheName must match the cache id in that file.

Setting up Package

Register the store options, then make NCache the Quartz job store:

using NCache.Quartz.Extensions;
using Quartz;

builder.Services.AddNCacheJobStore(options => options.CacheName = "defaultCache");

builder.Services.AddQuartz(q => q.UseNCacheJobStore());

builder.Services.AddQuartzHostedService(options => options.WaitForJobsToComplete = true);

To read the store options from application configuration, pass the configuration section:

builder.Services.AddNCacheJobStore(builder.Configuration, "Quartz:NCache");

Outside of dependency injection, use Quartz's SchedulerBuilder:

using NCache.Quartz.Extensions;
using Quartz;

var scheduler = await SchedulerBuilder.Create("node-1", "ncacheQuartz")
    .UseNCacheJobStore(new NCacheJobStoreOptions
    {
        CacheName = "defaultCache",
        SchedulerName = "ncacheQuartz",
        InstanceId = "node-1"
    })
    .BuildScheduler();

await scheduler.Start();

Console.WriteLine("Scheduler running. Press Enter to stop.");
Console.ReadLine();

await scheduler.Shutdown(waitForJobsToComplete: true);

On this path the store writes no logs: Quartz creates it from text properties, so no logger reaches it, and Quartz 3's own logger is internal to Quartz. Use AddNCacheJobStore when you need the store's logs.

To tune locking, misfire handling and cluster heartbeats, set the options:

builder.Services.AddNCacheJobStore(options =>
{
    options.CacheName = "defaultCache";
    options.LockExpiration = TimeSpan.FromSeconds(30);
    options.MisfireThreshold = TimeSpan.FromSeconds(60);
    options.ClusterCheckinInterval = TimeSpan.FromSeconds(10);
});

Every scheduler node in the same cluster must use the same cache, scheduler name and key prefix. Each node needs a unique instance ID.

Configuration

Configure the storage through NCacheJobStoreOptions.

Property Description
CacheName Name of the NCache cache that stores the jobs and scheduler state. Required. Must match the cache id in client.ncconf.
SchedulerName Name shared by scheduler instances in the same cluster. If set, it becomes the Quartz scheduler name; if q.SchedulerName is also set, the two must match.
InstanceId Unique ID of this scheduler instance. If set, it becomes the Quartz scheduler ID (if q.SchedulerId is also set, the two must match). Empty or AUTO lets Quartz generate one.
KeyPrefix Prefix applied to the store's cache keys. Default ncache:quartz:.
LockExpiration Expiration of the NCache item locks used as distributed locks. Default 30 seconds; must be greater than 100 ms.
LockAcquireTimeout Maximum time to wait while acquiring a distributed lock before giving up. Default null (no timeout; cancellation still applies).
MisfireThreshold How late a trigger can be before the store treats it as misfired. Default 60 seconds.
ClusterCheckinInterval Interval between scheduler heartbeats. Default 10 seconds.
ClusterCheckinMisfireThreshold Additional time allowed beyond a scheduler's heartbeat interval before it is considered stale. Default 7.5 seconds.
RepairRegistriesOnStart Rebuilds the store's registries and releases orphaned acquisitions when the scheduler starts. Default true.

Custom triggers and calendars are stored with Quartz's System.Text.Json serializer. Register their serializers on every node with SystemTextJsonObjectSerializer.AddTriggerSerializer / AddCalendarSerializer before the scheduler starts.

The integration provides:

AddNCacheJobStore / UseNCacheJobStore: extension methods that register the store and make NCache the active Quartz job store.

NCacheJobStore: The IJobStore implementation, including storage of jobs, triggers, calendars and scheduler state.

Distributed locks that protect shared scheduling state across multiple scheduler processes.

Scheduler registration and heartbeats, with detection and recovery of scheduler instances that stop heartbeating.

Recovery of jobs marked with RequestsRecovery after a scheduler failure, and handling of misfired triggers.

Resources

NCache Integration Docs

Quartz Documentation

Programmer's Guide

Technical Support

Alachisoft provides various technical support resources.

Visit the Alachisoft Support Center to select a support resource appropriate for your issue.

To request additional features or report a documentation discrepancy, contact support@alachisoft.com.

License

Copyright © 2026 Alachisoft. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.3.800 100 11/16/2026