MCPcopy
hub / github.com/bradfitz/gomemcache / reply

Method reply

memcache/fakeserver_test.go:83–87  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

81}
82
83func (c *testConn) reply(msg string) bool {
84 fmt.Fprintf(c.bw, "%s\r\n", msg)
85 c.bw.Flush()
86 return true
87}
88
89var (
90 writeRx = regexp.MustCompile(`^(set|add|replace|append|prepend|cas) (\S+) (\d+) (\d+) (\d+)(?: (\S+))?( noreply)?\r\n`)

Callers 1

handleRequestLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected