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

Method sendDeleteRequest

memcache/raw_binary_client.go:557–568  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

555}
556
557func (c *RawBinaryClient) sendDeleteRequest(key string) MutateResponse {
558 if !isValidKeyString(key) {
559 return NewMutateErrorResponse(
560 key,
561 errors.New("Invalid key"))
562 }
563
564 if err := c.sendRequest(opDelete, 0, []byte(key), nil); err != nil {
565 return NewMutateErrorResponse(key, err)
566 }
567 return nil
568}
569
570// See Client interface for documentation.
571func (c *RawBinaryClient) Delete(key string) MutateResponse {

Callers 2

DeleteMethod · 0.95
DeleteMultiMethod · 0.95

Calls 4

sendRequestMethod · 0.95
NewFunction · 0.92
isValidKeyStringFunction · 0.85
NewMutateErrorResponseFunction · 0.85

Tested by

no test coverage detected