MCPcopy
hub / github.com/dropbox/godropbox / Prepend

Method Prepend

memcache/raw_binary_client.go:625–639  ·  view source on GitHub ↗

See Client interface for documentation.

(key string, value []byte)

Source from the content-addressed store, hash-verified

623
624// See Client interface for documentation.
625func (c *RawBinaryClient) Prepend(key string, value []byte) MutateResponse {
626 item := &Item{
627 Key: key,
628 Value: value,
629 }
630
631 c.mutex.Lock()
632 defer c.mutex.Unlock()
633
634 if resp := c.sendMutateRequest(opPrepend, item, false); resp != nil {
635 return resp
636 }
637
638 return c.receiveMutateResponse(opPrepend, item.Key)
639}
640
641func (c *RawBinaryClient) sendCountRequest(
642 code opCode,

Callers

nothing calls this directly

Calls 4

sendMutateRequestMethod · 0.95
receiveMutateResponseMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected