GetForUpdateAsync Method
GetForUpdateAsync(TKey)
Locks the key and then gets and returns the value to which the specified key is mapped.
Declaration
Task<TValue> GetForUpdateAsync(TKey key)
Parameters
TKey | key |
Returns
Task<TValue> |
Remarks
The lock will be released at the end of the transaction (either commit or rollback).