Documentation
¶
Index ¶
Constants ¶
View Source
const OP_REP = 0x02
View Source
const OP_SET = 0x01
Variables ¶
View Source
var ConnPoolAvailWaitTime = time.Millisecond
ConnPoolAvailWaitTime is the amount of time to wait for an existing connection from the pool before considering the creation of a new one.
ConnPoolTimeout is notified whenever connections are acquired from a pool.
View Source
var ConnPoolTimeout = time.Hour * 24 * 30
Default timeout for retrieving a connection from the pool.
View Source
var TimeoutError = errors.New("timeout waiting to build connection")
Error raised when a connection can't be retrieved from a pool.
Functions ¶
func IsOwner ¶
func IsOwner(req *gomemcached.MCRequest) bool
func ProxyRemoteRead ¶
func ProxyRemoteRead(req *gomemcached.MCRequest) *gomemcached.MCResponse
we are not the master of this node, so proxy
func ProxyRemoteWrite ¶
func ProxyRemoteWrite(req *gomemcached.MCRequest)
we are not the master of this node, so proxy
func QueueRemoteWrite ¶
func QueueRemoteWrite(req *gomemcached.MCRequest)
return true if data needs to be written here
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.