@@ -34,7 +34,7 @@ $videoQueue->add(Queue::DEFAULT_JOB_NAME, [
34
34
]);
35
35
```
36
36
37
- If you want to use ` predis ` as Redis client:
37
+ If you want to use ` predis ` as Redis client (example configuration) :
38
38
39
39
``` php
40
40
<?php
@@ -48,6 +48,9 @@ $videoQueue = new Queue(
48
48
new QueueOpts([
49
49
'redis' => new RedisConfig([
50
50
'driver' => 'predis',
51
+ 'host' => '127.0.0.1',
52
+ 'port' => 6379,
53
+ 'password' => '',
51
54
]),
52
55
])
53
56
);
@@ -58,6 +61,32 @@ $videoQueue->add(Queue::DEFAULT_JOB_NAME, [
58
61
59
62
```
60
63
64
+ ## Configurations
65
+
66
+ All is configured via classes:
67
+
68
+ * ` Ilzrv\PhpBullQueue\DTOs\RedisConfig `
69
+ * ` Ilzrv\PhpBullQueue\DTOs\QueueOpts `
70
+ * ` Ilzrv\PhpBullQueue\DTOs\JobOpts `
71
+
72
+ ### RedisConfig
73
+ * ` driver ` (string) Redis driver. Can be ` phpredis ` or ` predis ` . Default: ` phpredis `
74
+ * ` host ` (string) Redis host. Default: ` 127.0.0.1 `
75
+ * ` port ` (int) Redis port. Default: ` 6379 `
76
+ * ` password ` (string) Redis password. Default: ` '' `
77
+
78
+ ### QueueOpts
79
+ * ` redis ` (RedisConfig Object) Redis Configuration.
80
+ * ` prefix ` (string) Queue prefix. Default: ` bull `
81
+
82
+ ### JobOpts
83
+ * ` customJobId ` (string) Custom JobId. Default: ` 0 `
84
+ * ` priority ` (int) Job priority. Default: ` 0 `
85
+ * ` lifo ` (bool) Last In, First Out. Default: ` false `
86
+ * ` attempts ` (int) Job attempts. Default: ` 1 `
87
+ * ` timestamp ` (int) Current timestamp.
88
+ * ` delay ` (int) Job delay. Default: ` 0 `
89
+
61
90
## License
62
91
63
92
The MIT License (MIT). Please see [ License File] ( LICENSE ) for more information.
0 commit comments