该示例说明了从共享内存获取 varnish 统计快照
示例 #1 获取统计快照
<?php$vs = new VarnishStat;try { $data = $vs->getSnapshot();} catch (VarnishException $e) { echo $e->getMessage(); exit(3);}exit(0);?>