public async Task SetAsync(TKey key, TValue value) { var(keyData, valueData) = ToSafeData(key, value); var requestMessage = TransactionalMapSetCodec.EncodeRequest(Name, TransactionId, ContextId, keyData, valueData); var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CfAwait(); _ = TransactionalMapSetCodec.DecodeResponse(responseMessage); }
public async Task SetAsync(TKey key, TValue value, TimeSpan timeToLive) { var(keyData, valueData) = ToSafeData(key, value); var timeToLiveMilliseconds = timeToLive.CodecMilliseconds(-1); // FIXME TIME TO LIVE?? var requestMessage = TransactionalMapSetCodec.EncodeRequest(Name, TransactionId, ContextId, keyData, valueData); var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CAF(); _ = TransactionalMapSetCodec.DecodeResponse(responseMessage); }