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
| 92 | // operations are serialized (Use multiple channels / clients if parallelism |
| 93 | // is needed). |
| 94 | type 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. |
| 103 | func NewRawBinaryClient(shard int, channel io.ReadWriter) ClientShard { |
nothing calls this directly
no outgoing calls
no test coverage detected