Basic VarnishStat usage

The example illustrates getting varnish statistic snapshot from shared memory

示例 #1 Get statistic snapshot

<?php

$vs
= new VarnishStat;

try {
$data = $vs->getSnapshot();
} catch (
VarnishException $e) {
echo
$e->getMessage();
exit(
3);
}

exit(
0);
?>
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top