MCPcopy
hub / github.com/dgraph-io/badger / WithMeta

Method WithMeta

structs.go:181–184  ·  view source on GitHub ↗

WithMeta adds meta data to Entry e. This byte is stored alongside the key and can be used as an aid to interpret the value or store other contextual bits corresponding to the key-value pair of entry.

(meta byte)

Source from the content-addressed store, hash-verified

179// and can be used as an aid to interpret the value or store other contextual
180// bits corresponding to the key-value pair of entry.
181func (e *Entry) WithMeta(meta byte) *Entry {
182 e.UserMeta = meta
183 return e
184}
185
186// WithDiscard adds a marker to Entry e. This means all the previous versions of the key (of the
187// Entry) will be eligible for garbage collection.

Callers 4

txnSetFunction · 0.80
TestSetIfAbsentAsyncFunction · 0.80
TestBackupRestore1Function · 0.80
createVlogFunction · 0.80

Calls

no outgoing calls

Tested by 4

txnSetFunction · 0.64
TestSetIfAbsentAsyncFunction · 0.64
TestBackupRestore1Function · 0.64
createVlogFunction · 0.64