TransactionClearRange() public static method

public static TransactionClearRange ( TransactionHandle transaction, Slice beginKey, Slice endKey ) : void
transaction TransactionHandle
beginKey Slice
endKey Slice
return void
Example #1
0
 /// <inheritdoc />
 public void ClearRange(ReadOnlySpan <byte> beginKeyInclusive, ReadOnlySpan <byte> endKeyExclusive)
 {
     FdbNative.TransactionClearRange(m_handle, beginKeyInclusive, endKeyExclusive);
     // There is an overhead of 28-byte per operation
     Interlocked.Add(ref m_payloadBytes, beginKeyInclusive.Length + endKeyExclusive.Length + 28);
 }
 public void ClearRange(Slice beginKeyInclusive, Slice endKeyExclusive)
 {
     FdbNative.TransactionClearRange(m_handle, beginKeyInclusive, endKeyExclusive);
     // There is an overhead of 28-byte per operation
     Interlocked.Add(ref m_payloadBytes, beginKeyInclusive.Count + endKeyExclusive.Count + 28);
 }