MCPcopy Create free account
hub / github.com/couchbase/moss / Set

Method Set

api.go:327–327  ·  view source on GitHub ↗

Set creates or updates an key-val entry in the Collection. The key must be unique (not repeated) within the Batch. Set() copies the key and val bytes into the Batch, so the memory bytes of the key and val may be reused by the caller.

(key, val []byte)

Source from the content-addressed store, hash-verified

325 // copies the key and val bytes into the Batch, so the memory
326 // bytes of the key and val may be reused by the caller.
327 Set(key, val []byte) error
328
329 // Del deletes a key-val entry from the Collection. The key must
330 // be unique (not repeated) within the Batch. Del copies the key

Callers 15

createItemsMethod · 0.95
addItemsMethod · 0.95
testIteratorSeekToFunction · 0.95
TestIteratorSingleDoneFunction · 0.95
testSimpleStoreExFunction · 0.95
testStoreCompactionFunction · 0.95
TestOpenStoreCollectionFunction · 0.95
TestStoreNilValueFunction · 0.95
TestStoreSnapshotRevertFunction · 0.95

Calls

no outgoing calls

Tested by 15

createItemsMethod · 0.76
addItemsMethod · 0.76
testIteratorSeekToFunction · 0.76
TestIteratorSingleDoneFunction · 0.76
testSimpleStoreExFunction · 0.76
testStoreCompactionFunction · 0.76
TestOpenStoreCollectionFunction · 0.76
TestStoreNilValueFunction · 0.76
TestStoreSnapshotRevertFunction · 0.76