NCache 4.6 - Online Documentation

Using Cache Startup Loader

 
To configure Cache Startup Loader, ICacheLoader interface provided by NCache needs to be implemented and then deployed using NCache Manager. NCache uses that custom provider to load data from the configured data source either in bulk or sequentially in case of key dependency among the items. On cache startup, NCache framework iteratively calls the LoadNext() method of this custom provider until it specifies that no more data is remaining.
 
 
       To utilize the ICacheLoader, include the following namespaces in your application:
  • Alachisoft.NCache.Runtime.CacheLoader
  • Alachisoft.NCache.Runtime.Caching
 
 
In this section:
 
Names the references required and the steps to deploy a class which implements the interface and describes the overloaded methods.
 
Explains how distribution hints can be configured through config.ncconf.
 
Provides the code snippet to implement the Interface on a single node.
 
Provides the code snippet to implement the Interface on multiple nodes, using distribution hints.
 
 
See Also