php教程

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);
?>

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788