public static TransactionSet ( |
||
transaction | ||
key | Slice | |
value | Slice | |
리턴 | void |
/// <inheritdoc /> public void Set(ReadOnlySpan <byte> key, ReadOnlySpan <byte> value) { FdbNative.TransactionSet(m_handle, key, value); // There is a 28-byte overhead pet Set(..) in a transaction // cf http://community.foundationdb.com/questions/547/transaction-size-limit Interlocked.Add(ref m_payloadBytes, key.Length + value.Length + 28); }
public void Set(Slice key, Slice value) { FdbNative.TransactionSet(m_handle, key, value); // There is a 28-byte overhead pet Set(..) in a transaction // cf http://community.foundationdb.com/questions/547/transaction-size-limit Interlocked.Add(ref m_payloadBytes, key.Count + value.Count + 28); }