1. 程式人生 > >簡單的時序圖工具---Markdown

簡單的時序圖工具---Markdown

用markdown畫的時序圖

效果圖

Created with Raphaël 2.1.0CLientCLientServerServerHashtableHashtableMemcacheMemcacheSlabSlab1. set data(key, value)2. forearch(key)/not found3. Not found4. get mem(key, value)5. get slot link(total length)6. get item space,tianru data7.add to hashtable(key value)8.stored successa1. get data(key)
a2. get value(key)a3. return valueboth A and B

用程式碼段格式,然後 三個點後加 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

讀者自由感受簡單語法

男神鎮
這裡寫圖片描述