byjg / beansqueueclient
Beansqueue client is a client to connect to a beanstalk queue.
1.0.2
2017-09-03 14:14 UTC
Requires
- pda/pheanstalk: 3.1.*
This package is auto-updated.
Last update: 2024-11-10 15:28:40 UTC
README
Enfileirar um job em uma fila Beanstalk.
<?php
$queue = \BeansqueueClient\PheanstalkEnqueuer::factory();
$queueId = $queue->put(
'queuename', // The queuename
[
"data"=>"value", // The payload as array
"data2"=>"value2"
],
60, // Timeout (opcional)
\Pheanstalk\PheanstalkInterface::DEFAULT_PRIORITY, // Opcional
0 // Delay (Opcional)
);