Configuring Cache Start-Up Loader
NCache supports cache start-up loader through which a user can preload the cache with given data at the time of cache start-up. This feature can be configured in the following ways:
Using NCache Manager
-
Browse for the required assembly and click Open after selecting the required assembly.
-
Name of selected assembly will be appeared in Assembly Name and its classes implementing interface will be listed down in Class Name list box at Cache Loader tab. Select the required class
Using Command Line Tool
-
Open command prompt
-
Go to the NCache tools directory: cd %NCHOME%/bin/tools
-
Use addstartuploader.exe tool, provide the required information as:
addstartuploader demoLocalCache /a C:\Downloads\Providers.dll/cNCache.Sample.Providers.Loaders.Loader1
-
Hit ENTER key, it will add Loader1 as startup loader on demoLocalCache.
-
Now depoly all of the required assemblies (assembly in which you have implemented the write-through provider and all of its dependency assemblies) using deployprovider.exe. Use following command on command prompt:
deployprovider demoLocalCache /T C:\Users\Administrator\Downloads\Providers\
See Also