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

Struct RawBinaryClient

memcache/raw_binary_client.go:94–100  ·  view source on GitHub ↗

An unsharded memcache client implementation which operates on a pre-existing io channel (The user must explicitly setup and close down the channel), using the binary memcached protocol. Note that the client assumes nothing else is sending or receiving on the network channel. In general, all client

Source from the content-addressed store, hash-verified

92// operations are serialized (Use multiple channels / clients if parallelism
93// is needed).
94type RawBinaryClient struct {
95 shard int
96 channel io.ReadWriter
97 mutex sync.Mutex
98 validState bool
99 maxValueLength int
100}
101
102// This creates a new memcache RawBinaryClient.
103func NewRawBinaryClient(shard int, channel io.ReadWriter) ClientShard {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected