Class WriteOperation
WriteOperation is used with the DSWriteOperation to get an operation to perform on the cache.
Inherited Members
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class WriteOperation : WriteOperationBase
Constructors
WriteOperation(String, ProviderCacheItem, WriteOperationType, Int32)
WriteOperation constructor which takes key, ProviderCache, WriteOperationType and retries count.
Declaration
public WriteOperation(string key, ProviderCacheItem cacheItem, WriteOperationType opType, int retryCount)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item on which operation has to be performed. |
ProviderCacheItem | cacheItem | It is a ProviderCacheItem that contains the object on which operation is need to be performed. |
WriteOperationType | opType | WriteOperationType that contains the type of the operation needs to be performed. |
System.Int32 | retryCount | RetryCount is a count for how many times the retries are need to be performed for the FailureRetry items. |
Properties
OperationType
Gets the type of the write operation.
Declaration
public WriteOperationType OperationType { get; set; }
Property Value
Type | Description |
---|---|
WriteOperationType | Logs the operations type in write-behind operation. |
ProviderItem
Gets the ProviderCacheItem.
Declaration
public ProviderCacheItem ProviderItem { get; set; }
Property Value
Type | Description |
---|---|
ProviderCacheItem | A CacheItem class with limited fields. |
Methods
getRetryCount()
Declaration
public int getRetryCount()
Returns
Type | Description |
---|---|
System.Int32 |