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.
-
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.
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
Deploy required assemblies using deployprovider.exe. Use the following command on command prompt:
deployprovider demoLocalCache /T C:\Users\Administrator\Downloads\Providers\
See Also