Search Results for

Show / Hide Table of Contents

# Interface ICacheEntryProcessor<TK, TV, TArg, TRes>

An invocable function that allows applications to perform compound operations on a cache entry atomically, according the defined consistency of a cache.

Any cache entry mutations will not take effect until after the Process(IMutableCacheEntry<TK, TV>, TArg) method has completedS execution.

If an exception is thrown by an entry processor, a Caching Implementation must wrap any exception thrown wrapped in an CacheEntryProcessorException If this occurs no mutations will be made to the cache entry.

###### Namespace: Apache.Ignite.Core.Cache

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface ICacheEntryProcessor<in TK, TV, in TArg, out TRes>

##### Type Parameters

Name | Description
--- | ---
TK | Key type.
TV | Value type.
TArg | The type of the processor argument.
TRes | The type of the processor result.

### Methods

#### Process(IMutableCacheEntry<TK, TV>, TArg)

Process an entry.

##### Declaration

    TRes Process(IMutableCacheEntry<TK, TV> entry, TArg arg)

##### Parameters

Type | Name | Description
--- | --- | ---
IMutableCacheEntry<TK, TV> | entry | The entry to process.
TArg | arg | The argument.

##### Returns

Type | Description
--- | ---
TRes | Processing result.