MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Put

Method Put

driver/badger/batch.go:22–27  ·  view source on GitHub ↗
(key, value []byte)

Source from the content-addressed store, hash-verified

20}
21
22func (w *WriteBatch) Put(key, value []byte) {
23 w.lock.Lock()
24 defer w.lock.Unlock()
25
26 w.getWriteBatch().Set(key, value)
27}
28
29func (w *WriteBatch) Delete(key []byte) {
30 w.lock.Lock()

Callers

nothing calls this directly

Calls 2

getWriteBatchMethod · 0.95
SetMethod · 0.80

Tested by

no test coverage detected