Cache Loader and Refresher
NCache provides the Cache Startup Loader and Cache Refresher to optimize application warm-up and ensure data consistency. The Cache Startup Loader pre-populates the cache with required application data at cache startup, ensuring that frequently used datasets are readily available as soon as the cache becomes active. This significantly reduces application warm-up time and avoids performance degradation caused by initial cache misses. To ensure data consistency over time, the Cache Refresher periodically updates the preloaded cache data by synchronizing it with the underlying data source based on user-defined refresh intervals. This section describes the implementation and usage of Cache Startup Loader and Refresher.
In This Section
Overview
Understand how Cache Loader and Refresher work, including the NCache Execution Service, dataset distribution across cluster nodes, scheduling options (daily/weekly/monthly), and configuration properties. Learn through practical examples how datasets are assigned and refreshed to optimize loading performance.
Implement Loader and Refresher
Discusses the implementation of Cache Loader and Refresher. Step-by-step guide to implementing the ICacheLoader interface in your application. Create custom loading logic to fetch data from your data sources (databases) and populate the cache automatically at startup.
Components of Loader/Refresher
Discusses in detail the components of Cache Loader and Refresher and how to configure them for loading and refreshing data from the configured data source.