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-10-10 15:18:13 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)
);