SetEntry takes an Entry struct and adds the key-value pair in the struct, along with other metadata to the database. The current transaction keeps a reference to the entry passed in argument. Users must not modify the entry until the end of the transaction.
(e *Entry)
| 417 | // The current transaction keeps a reference to the entry passed in argument. |
| 418 | // Users must not modify the entry until the end of the transaction. |
| 419 | func (txn *Txn) SetEntry(e *Entry) error { |
| 420 | return txn.modify(e) |
| 421 | } |
| 422 | |
| 423 | // Delete deletes a key. |
| 424 | // |