MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / WithKey

Method WithKey

internal/core/entry.go:231–234  ·  view source on GitHub ↗

WithKey set key to Entry

(key []byte)

Source from the content-addressed store, hash-verified

229
230// WithKey set key to Entry
231func (e *Entry) WithKey(key []byte) *Entry {
232 e.Key = key
233 return e
234}
235
236// WithValue set value to Entry
237func (e *Entry) WithValue(value []byte) *Entry {

Callers 15

loadHintFileMethod · 0.95
Test_readEntryFunction · 0.45
putMethod · 0.45
Test_EntryCreationFunction · 0.45
Test_EntryMostFunctionsFunction · 0.45
TestList_ErrListNotFoundFunction · 0.45
TestList_Push_SuccessFunction · 0.45
runBTreeTestFunction · 0.45
TestBTree_AllFunction · 0.45

Calls

no outgoing calls

Tested by 15

Test_readEntryFunction · 0.36
Test_EntryCreationFunction · 0.36
Test_EntryMostFunctionsFunction · 0.36
TestList_ErrListNotFoundFunction · 0.36
TestList_Push_SuccessFunction · 0.36
runBTreeTestFunction · 0.36
TestBTree_AllFunction · 0.36
TestBTree_RangeFunction · 0.36
TestBTree_UpdateFunction · 0.36