NCache 4.6 - Online Documentation

Write-Through Provider for Write-Behind Operations

If Write-Behind option is enabled in NCache, 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.
  • 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
  • Press ENTER, 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\
  • Press ENTER, it will deploy all of the assemblies from the given path to NCache deploy folder.
See Also