Alachisoft NCache 4.1 - Online Documentation

Using Cache Startup Loader

NOTE: This feature is not available in NCache Express and Professional edition.
For enabling Cache Startup Loader, your program needs a reference of the assembly Alachisoft.NCache.Runtime.dll that contains interface Alachisoft.NCache.Runtime.CacheLoader.ICacheLoader 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 namespaces are required in your project for using ICacheLoader:
using Alachisoft.NCache.Runtime.CacheLoader;
using Alachisoft.NCache.Runtime.Caching;
ICacheLoader Interfaces:
In order to use ICacheLoader in your application, implement the following interface:
public void Init(System.Collections.IDictionary parameters);
public bool LoadNext(ref System.Collections.Specialized.OrderedDictionary data, ref object index);
public void Dispose();
See Also
Copyright © 2005-2012 Alachisoft. All rights reserved.