TransactionSet() public static method

public static TransactionSet ( TransactionHandle transaction, Slice key, Slice value ) : void
transaction TransactionHandle
key Slice
value Slice
return void
コード例 #1
0
        /// <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);
        }
コード例 #2
0
        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);
        }