Basic VarnishStat usage
The example illustrates getting varnish statistic snapshot from shared memory
Example #1 Get statistic snapshot
<?php
$vs = new VarnishStat;
try {
$data = $vs->getSnapshot();
} catch (VarnishException $e) {
echo $e->getMessage();
exit(3);
}
exit(0);
?>来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
