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

Method WithValueLogLoadingMode

options.go:272–275  ·  view source on GitHub ↗

WithValueLogLoadingMode returns a new Options value with ValueLogLoadingMode set to the given value. ValueLogLoadingMode indicates which file loading mode should be used for the value log data files. The default value of ValueLogLoadingMode is options.MemoryMap.

(val options.FileLoadingMode)

Source from the content-addressed store, hash-verified

270//
271// The default value of ValueLogLoadingMode is options.MemoryMap.
272func (opt Options) WithValueLogLoadingMode(val options.FileLoadingMode) Options {
273 opt.ValueLogLoadingMode = val
274 return opt
275}
276
277// WithNumVersionsToKeep returns a new Options value with NumVersionsToKeep set to the given value.
278//

Callers 3

getTestOptionsFunction · 0.80
mainFunction · 0.80
readBenchFunction · 0.80

Calls

no outgoing calls

Tested by 1

getTestOptionsFunction · 0.64