XMemcachedClient.set()
1. checkKey
2. createCommand -->return TextStoreCommand
3. sendCommand
MemcachedConnector.findSessionByKey() --> key.hashCode()%size
MemcachedSession.write(command)
TextStoreCommand.encode()
4. return command.getResult()
XMemcachedClient.get()
1. checkKey
2. createCommand -->return TextGetOneCommand
3. sendCommand
MemcachedConnector.findSessionByKey() --> key.hashCode()%size
TextStoreCommand.encode()
MemcachedSession.write(command)
4. Command.getLatch().await()
5. return command.getResult()
xmemcached 源代码简单记录
猜你喜欢
转载自san-yun.iteye.com/blog/1747155
今日推荐
周排行