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