Interface IWriteThruProvider
Contains methods used to save/update an object to the master data source. Must be implemented by write-through components.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface IWriteThruProvider
Dispose()
Perform tasks associated with freeing, releasing, or resetting resources.
Declaration
void Dispose()
Init(IDictionary, String)
Perform tasks like allocating resources or acquiring connections etc.
Declaration
void Init(IDictionary parameters, string cacheId)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | parameters | Startup paramters defined in the configuration |
System.String | cacheId | Id of the Cache |
WriteToDataSource(WriteOperation)
Responsible for atomic write operations on data source.
Declaration
OperationResult WriteToDataSource(WriteOperation operation)
Parameters
Type | Name | Description |
---|---|---|
WriteOperation | operation | write operation applied on data source |
Returns
Type | Description |
---|---|
OperationResult | failed operations, null otherwise |
WriteToDataSource(WriteOperation[])
Responsible for bulk write operations on data source.
Declaration
OperationResult[] WriteToDataSource(WriteOperation[] operations)
Parameters
Type | Name | Description |
---|---|---|
WriteOperation[] | operations |
Returns
Type | Description |
---|---|
OperationResult[] | array of failed operations |