NCache 4.4 - Online Documentation

Configuring Conflict Resolver

 
There are situations when a bridge tries to replicate an operation for a key that already exist in the cache. Conflict Resolver is introduced to resolve the conflict between existing operations and operation replicated from bridge to the cache. It decides which key to apply on the cache depending upon defined rules. By default the decision will be made on Time Based rule, which keeps the latest key on a cache. Users can also define their own rules for conflict resolver. Its settings can be configured as follows:
 
Using NCache Manager
 
  • Click on the cache name in Cache Explorer to open cache settings
  • Go to the Conflict Resolver tab.
  • Check Enable Conflict Resolver check box to enable it. Others options will become enable after that.
 
 
  • Click on the ‘…’ button and select the assembly in which you have implemented the IBridgeConflictResolver interface.
 
  • Name of selected assembly will be appeared in Assembly Name textbox and all of its classes which have implemented the IBridgeConflictResolver interface will be listed down in Class Name list box. Select the required class.
 
 
  • Click New to provide any additional parameters, if required.
 
 
  • New Parameter dialog appears; provide the Parameter Name and Parameter Value.
 
 
  • Click the Deploy Conflict Resolver button, select your assembly in which you have implemented IBridgeConflictResolver interface and click on the  button in Open dialog.
 
 
  • Apply configuration using right clicking on the cache name in Cache Explorer and selecting Apply Configuration option.
 
 
See Also