(key, value []byte)
| 12 | } |
| 13 | |
| 14 | func (w *WriteBatch) Put(key, value []byte) { |
| 15 | buf := bytes.NewBuffer(value) |
| 16 | cid, err := w.db.remoteShell.Add(buf) |
| 17 | if err != nil { |
| 18 | w.err = err |
| 19 | return |
| 20 | } |
| 21 | w.wbatch.Put(key, []byte(cid)) |
| 22 | w.db.cache.Del(key) |
| 23 | } |
| 24 | |
| 25 | func (w *WriteBatch) Delete(key []byte) { |
| 26 | w.wbatch.Delete(key) |
nothing calls this directly
no outgoing calls
no test coverage detected