gomemcache
2016-09-19 16:18:19 4 举报
AI智能生成
gomemcache
作者其他创作
大纲/内容
中心主题
Client
Timeout
time.Duration
selector
ServerSelector
lk
sync.Mutex
freeconn
map[string][]*conn
ServerList
mu sync.RWMutex
addrs []net.Addr
conn
nc net.Conn
rw *bufio.ReadWriter
addr net.Addr
c *Client
New
ss=new(ServerList)
ss.SetServers(server...)
naddr[i] = tcpaddr
&Client{selector: ss}
Get
withKeyAddr
PickServer
an_fn
getFromAddr
withAddrRw
getConn
getFreeConn
extendDeadline
dialConn
bufio.ReadSlice('\')
scanGetResponseLine
pattern := \"VALUE %s %d %d %d\\\"
cb(it)
condRelease
release
putFreeConn
an_fn(it *item)
item=it
class Set
populateOne
rw.Write(item.Value);
rw.Flush()
rw.ReadSlice('\')
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容