文字

GearmanWorker::setOptions

(PECL gearman >= 0.5.0)

GearmanWorker::setOptionsSet worker options

说明

public bool GearmanWorker::setOptions ( int $option )

Sets one or more options to the supplied value.

参数

option

The options to be set

返回值

Always returns TRUE .

参见

  • GearmanWorker::options() - Get worker options
  • GearmanWorker::addOptions() - Add worker options
  • GearmanWorker::removeOptions() - Remove worker options
  • GearmanClient::setOptions() - Set client options
上一篇: 下一篇: