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

Method Set

segment.go:169–171  ·  view source on GitHub ↗

Set copies the key and val bytes into the segment as a "set" mutation. The key must be unique (not repeated) within the segment.

(key, val []byte)

Source from the content-addressed store, hash-verified

167// mutation. The key must be unique (not repeated) within the
168// segment.
169func (a *segment) Set(key, val []byte) error {
170 return a.mutate(OperationSet, key, val)
171}
172
173// Del copies the key bytes into the segment as a "deletion" mutation.
174// The key must be unique (not repeated) within the segment.

Callers

nothing calls this directly

Calls 1

mutateMethod · 0.95

Tested by

no test coverage detected