require('./BeanStalk.class .php');
$beanstalk = BeanStalk::open(array(
'servers' => array( '127.0.0.1:11300' ),
'select' => 'ランダム ピーク'
));
$beanstalk->use_tube('foo');
$beanstalk->put(0, 0, 120, 'say hello world'); ('foo');
$job = $beanstalk->reserve_with_timeout();
echo $job->get(); // 出力: 'say hello world'
Beanstalk::delete ($job); // ジョブを削除します。
?>