|
NCache supports write-through caching. The idea behind write-through cache is that when an application updates a piece of data in the cache, the operation is not completed until the changed data has been successfully stored in the underlying data source. Though this enhances data integrity but affects the performance negatively in terms of the latency involved in writing to the data store. This latency can be overcomed by write-behind caching.
Using NCache Manager
-
Click on the cache name in Cache Explorer to open cache settings.
-
Go to the Baking Source tab.
-
Check Enable Write-Through on this cache check box to enable it. After enabling it, other options will get enabled as well.
Using Command Tool
-
Open command prompt
-
Go to the NCache tools directory: cd %NCHOME%/bin/tools
-
Use addbackingsource.exe tool, provide the required information as:
addbackingsource.exe demoLocalCache /path C:\Downloads\Providers.dll /cNCache.Sample.Providers.Writers.Writer1 /pnwriter1/W
-
Hit ENTER key, it will configure Writer1 write-through provider 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
|
|