update : 2015.11.03
php.shukuma.com
검색:
The VarnishAdmin class
Basic VarnishLog usage
VarnishAdmin::auth
Varnish
PHP Manual
The VarnishAdmin class
(PECL varnish >= 0.3)
소개
클래스 개요
VarnishAdmin
{
/* 메소드 */
public
bool
auth
(
void
)
public
int
ban
(
string
$vcl_regex
)
public
int
banUrl
(
string
$vcl_regex
)
public
int
clearPanic
(
void
)
public
bool
connect
(
void
)
public
__construct
([
array
$args
] )
public
bool
disconnect
(
void
)
public
string
getPanic
(
void
)
public
array
getParams
(
void
)
public
bool
isRunning
(
void
)
public
void
setCompat
(
int
$compat
)
public
void
setHost
(
string
$host
)
public
void
setIdent
(
string
$ident
)
public
int
setParam
(
string
$name
,
string|integer
$value
)
public
void
setPort
(
int
$port
)
public
void
setSecret
(
string
$secret
)
public
void
setTimeout
(
int
$timeout
)
public
int
start
(
void
)
public
int
stop
(
void
)
}
Table of Contents
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
Basic VarnishLog usage
VarnishAdmin::auth
Varnish
PHP Manual