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

Method WithValueLogFileSize

options.go:438–441  ·  view source on GitHub ↗

WithValueLogFileSize returns a new Options value with ValueLogFileSize set to the given value. ValueLogFileSize sets the maximum size of a single value log file. The default value of ValueLogFileSize is 1GB.

(val int64)

Source from the content-addressed store, hash-verified

436//
437// The default value of ValueLogFileSize is 1GB.
438func (opt Options) WithValueLogFileSize(val int64) Options {
439 opt.ValueLogFileSize = val
440 return opt
441}
442
443// WithValueLogMaxEntries returns a new Options value with ValueLogMaxEntries set to the given
444// value.

Callers 5

TestLargeKeysFunction · 0.80
TestGetSetDeadlockFunction · 0.80
TestWriteDeadlockFunction · 0.80
TestArmV7Issue311FixFunction · 0.80
TestPushValueLogLimitFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestLargeKeysFunction · 0.64
TestGetSetDeadlockFunction · 0.64
TestWriteDeadlockFunction · 0.64
TestArmV7Issue311FixFunction · 0.64
TestPushValueLogLimitFunction · 0.64