VarnishAdmin::__construct
(PECL varnish >= 0.3)
VarnishAdmin::__construct — VarnishAdmin constructor
Description
public VarnishAdmin::__construct
([ array
$args
] )
Parameters
-
args
-
Configuration arguments. The possible keys are:
VARNISH_CONFIG_IDENT - local varnish instance ident VARNISH_CONFIG_HOST - varnish instance ip VARNISH_CONFIG_PORT - varnish instance port VARNISH_CONFIG_SECRET - varnish instance secret VARNISH_CONFIG_TIMEOUT - connection read timeout VARNISH_CONFIG_COMPAT - varnish major version compatibility
Return Values
Examples
Example #1 VarnishAdmin::__construct() example
<?php
$args = array(
VARNISH_CONFIG_HOST => "::1",
VARNISH_CONFIG_PORT => 6082,
VARNISH_CONFIG_SECRET => "5174826b-8595-4958-aa7a-0609632ad7ca",
VARNISH_CONFIG_TIMEOUT => 300,
);
$va = new VarnishAdmin($args);
?>
- Функция VarnishAdmin::auth() - Authenticate on a varnish instance
- Функция VarnishAdmin::ban() - Ban URLs using a VCL expression
- Функция VarnishAdmin::banUrl() - Ban an URL using a VCL expression
- Функция VarnishAdmin::clearPanic() - Clear varnish instance panic messages
- Функция VarnishAdmin::connect() - Connect to a varnish instance administration interface
- Функция VarnishAdmin::__construct() - VarnishAdmin constructor
- Функция VarnishAdmin::disconnect() - Disconnect from a varnish instance administration interface
- Функция VarnishAdmin::getPanic() - Get the last panic message on a varnish instance
- Функция VarnishAdmin::getParams() - Fetch current varnish instance configuration parameters
- Функция VarnishAdmin::isRunning() - Check if the varnish slave process is currently running
- Функция VarnishAdmin::setCompat() - Set the class compat configuration param
- Функция VarnishAdmin::setHost() - Set the class host configuration param
- Функция VarnishAdmin::setIdent() - Set the class ident configuration param
- Функция VarnishAdmin::setParam() - Set configuration param on the current varnish instance
- Функция VarnishAdmin::setPort() - Set the class port configuration param
- Функция VarnishAdmin::setSecret() - Set the class secret configuration param
- Функция VarnishAdmin::setTimeout() - Set the class timeout configuration param
- Функция VarnishAdmin::start() - Start varnish worker process
- Функция VarnishAdmin::stop() - Stop varnish worker process
Коментарии
404 Not Found