MCPcopy
hub / github.com/perkeep/perkeep / KeyValue

Struct KeyValue

pkg/sorted/buffer/buffer.go:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43var _ sorted.KeyValue = (*KeyValue)(nil)
44
45type KeyValue struct {
46 buf, back sorted.KeyValue
47 maxBuffer int64
48
49 bufMu sync.Mutex
50 buffered int64
51
52 // This read lock should be held during Set/Get/Delete/BatchCommit,
53 // and the write lock should be held during Flush.
54 mu sync.RWMutex
55}
56
57func (kv *KeyValue) Flush() error {
58 kv.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected