NCache 4.4 - Online Documentation

Write-Through Provider for Write-Behind Operations

 
If write-behind option is enabled, then all of the data source operations are queued up and performed in the background.
There are multiple settings which can be used to optimize the write-through provider to fulfill the user requirements. These settings can be configured as follows:
 
Using NCache Manager
 
  • Click on the cache name in Cache Explorer to open cache settings.
  • Go to the Baking Source tab.
  • Batching, Throttling and Re-Queue Operations settings are given below the Write-Through list box.
 
 
  • Change the settings as per your application requirements.
 
  • Check the Enable Batching checkbox to perform all write-behind operations on data source in bulk/batches.You can also configure the Batch-interval(s) and Operation-delay (ms) for the batching mode.
  • Change the value for Operations per second, to control how many write-behind operations will be performed on data source in a second.
  • You can also configure the Failed operations queue limit. This queue is used to re-queue the failed oprations and will be retired on data source.
 
 
  • Right click the cache in Cache Explorer and select Apply Configuration option.
 
 
 
 
 
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:\Users\Administrator\Downloads\Providers.dll /cNCache.Sample.Providers.Writers.Writer1 /pnwriter1/W /b true /ops 500
  • Hit ENTER key, it will configure Writer1 write-through provider on demoLocalcache with write-behind enabled and with throttling limit of 500 operations per second.
Deploy required assemblies using deployprovider.exe. Use the following command on command prompt:
deployprovider demoLocalCache /T C:\Users\Administrator\Downloads\Providers\
  • Hit ENTER key, it will deploy all of the assemblies from the given path to NCache deploy folder.
 
See Also