1 | <?php |
||
21 | class Redis extends AbstractQueue |
||
22 | { |
||
23 | /** |
||
24 | * Stores the redis connection. |
||
25 | * @var string|array|Connection |
||
26 | */ |
||
27 | public $db = 'redis'; |
||
28 | |||
29 | /** |
||
30 | * The name of the key to store the queue. |
||
31 | * @var string |
||
32 | */ |
||
33 | public $key = 'queue'; |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function init() |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function deleteJob(JobInterface $job): bool |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | protected function fetchJob() |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | protected function postJob(JobInterface $job): bool |
||
78 | |||
79 | /** |
||
80 | * @inheritdoc |
||
81 | */ |
||
82 | protected function releaseJob(JobInterface $job): bool |
||
92 | |||
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | public function getSize(): int |
||
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | */ |
||
104 | public function purge(): bool |
||
108 | } |
||
109 |