@@ -107,12 +107,12 @@ Task::isDelayed()
107107As you've already seen, to insert a task into a queue you need to call ` put() ` method, which accepts
108108two arguments: the data you want to process and optional array of task options, which this particular
109109queue supports. For example, ` fifottl ` queue (which we defined earlier in our Lua config file),
110- supports ` delay ` , ` ttl ` , ` ttr ` , ` pri ` and ` temporary ` options:
110+ supports ` delay ` , ` ttl ` , ` ttr ` and ` pri ` options:
111111
112112``` php
113- $queue->put('foo', ['delay' => 30]);
114- $queue->put('bar', ['ttl' => 5]);
115- $queue->put('baz', ['ttr' => 10, 'pri' => 42]);
113+ $queue->put('foo', [TtlOptions::DELAY => 30]);
114+ $queue->put('bar', [TtlOptions::TTL => 5]);
115+ $queue->put('baz', [TtlOptions::TTR => 10, TtlOptions::PRI => 42]);
116116```
117117
118118> See the full list of available options [ here] ( https://github.com/tarantool/queue#queue-types ) .
@@ -150,7 +150,7 @@ Or put back into the queue in case it cannot be executed:
150150$task = $queue->release($task->getId());
151151
152152// for *ttl queues you can specify a delay
153- $task = $queue->release($task->getId(), ['delay' => 30]);
153+ $task = $queue->release($task->getId(), [TtlOptions:DELAY => 30]);
154154```
155155
156156To look at a task without changing its state, use:
0 commit comments