NewEntry creates a new entry with key and value passed in args. This newly created entry can be set in a transaction by calling txn.SetEntry(). All other properties of Entry can be set by calling WithMeta, WithDiscard, WithTTL methods on it. This function uses key and value reference, hence users mu
(key, value []byte)
| 169 | // This function uses key and value reference, hence users must |
| 170 | // not modify key and value until the end of transaction. |
| 171 | func NewEntry(key, value []byte) *Entry { |
| 172 | return &Entry{ |
| 173 | Key: key, |
| 174 | Value: value, |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | // WithMeta adds meta data to Entry e. This byte is stored alongside the key |
| 179 | // and can be used as an aid to interpret the value or store other contextual |
no outgoing calls
searching dependent graphs…