用markdown画的时序图
效果图
用代码段格式,然后 三个点后加 sequence
CLient->Server:1. set data(key, value)
Server->Hashtable: 2. forearch(key)/not found
Hashtable-->Server: 3. Not found
Server->Memcache: 4. get mem(key, value)
Memcache->Slab: 5. get slot link(total length)
Slab->Slab:6. get item space,tianru data
Slab-->Hashtable:7.add to hashtable(key value)
Server-->CLient: 8.stored success
CLient->Server: a1. get data(key)
Server->Hashtable: a2. get value(key)
Server-->CLient:a3. return value
note over Memcache,Hashtable: both A and B
读者自由感受简单语法
男神镇