/*
Render using
$ dot -Tpng -ofigures/mymemflow.png figures/mymemflow.dot
*/
graph mymemflow {
	rankdir=LR
	node [shape=box]

	subgraph clusterPHP {
		rankdir=LR
		label="PHP"
		extmysql [label="ext/mysql"]
		extmysql  -- mysqlnd_memcache
		mysqli    -- mysqlnd_memcache
		pdo       -- mysqlnd_memcache

		subgraph clusterMysqlnd {
			label=mysqlnd
			mysqlnd_memcache [color=blue]
		}
	}

	subgraph clusterMySQL {
		label="MySQL Server"
		color=black
		sqlengine  [label="SQL Engine"]
		innoplugin [label="InnoDB Memcache Daemon" color=blue]
	}

	mysqlnd_memcache -- innoplugin [label="memcache protocol" color=blue]
	mysqlnd_memcache -- sqlengine  [label="MySQL Protocol"]
}
