PutAsync Method
PutAsync(TKey, TValue)
Transactional implementation of PutAsync(TKey, TValue).
Declaration
Task<TValue> PutAsync(TKey key, TValue value)
Parameters
TKey | key | A key. |
TValue | value | A value. |
Returns
Task<TValue> |
Remarks
The inserted entry wil be visible only in the current transaction context, until the transaction is committed.
PutAsync(TKey, TValue, TimeSpan)
Transactional implementation of PutAsync(TKey, TValue, TimeSpan).
Declaration
Task<TValue> PutAsync(TKey key, TValue value, TimeSpan timeToLive)
Parameters
TKey | key | A key. |
TValue | value | A value. |
TimeSpan | timeToLive | A time to live. |
Returns
Task<TValue> |
Remarks
The inserted entry wil be visible only in the current transaction context, until the transaction is committed.