PHP
Gearman

GearmanClient::addOptions

GearmanClient::addOptions

(PECL gearman >= 0.6.0)

GearmanClient :: addOptions - 添加客户端选项

描述

public bool GearmanClient::addOptions ( int $options )

将一个或多个选项添加到已设置的选项。

参数

options

The options to add. One of the following constants, or a combination of them using the bitwise OR operator ("|"): GEARMAN_CLIENT_GENERATE_UNIQUE, GEARMAN_CLIENT_NON_BLOCKING, GEARMAN_CLIENT_UNBUFFERED_RESULT or GEARMAN_CLIENT_FREE_TASKS.

返回值

始终返回TRUE

← GearmanClient

GearmanClient::addServer →