Alachisoft NCache 4.1 - Online Documentation

Using Cache Startup Loader

For enabling Cache Startup Loader, your program needs a reference of the assembly NCRuntime.jar that contains interface com.alachisoft.ncache.runtime.cacheloader.CacheLoader provided by NCache. The class implementing this interface allows framework to load data from the master datasource in the cache. Thus, the class needs to include the logic for loading the data from the datasource.
Following import statements are required in your project for using Cache Loader:
import com.alachisoft.ncache.runtime.cacheloader.CacheLoader;
import com.alachisoft.ncache.runtime.cacheloader.LoaderState;
CacheLoader Interfaces:
In order to use CacheLoader in your application, implement the following methods:
public void init(HashMap hm) throws Exception;
public boolean loadNext(LinkedHashMap lhm, LoaderState ls) throws Exception;
public void dispose() throws Exception;
See Also
Copyright © 2005-2012 Alachisoft. All rights reserved.