Download the PHP package byjg/redis-queue-client without Composer
On this page you can find all versions of the php package byjg/redis-queue-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download byjg/redis-queue-client
More information about byjg/redis-queue-client
Files in byjg/redis-queue-client
Download byjg/redis-queue-client
More information about byjg/redis-queue-client
Files in byjg/redis-queue-client
Vendor byjg
Package redis-queue-client
Short Description A simple and efficient abstraction layer for publishing and consuming messages from Redis queues using the byjg/message-queue-client framework
License MIT
Package redis-queue-client
Short Description A simple and efficient abstraction layer for publishing and consuming messages from Redis queues using the byjg/message-queue-client framework
License MIT
Please rate this library. Is it a good library?
Informations about the package redis-queue-client
sidebar_key: redis-queue-client tags: [php, queue]
Redis Queue Client
A simple and efficient abstraction layer for publishing and consuming messages from Redis queues using the byjg/message-queue-client framework.
Documentation
- Installation
- Connection
- Publishing Messages
- Consuming Messages
- Error Handling
Usage
Publish
Consume
The consume method will wait for a message and call the callback function to process the message. If there is no message in the queue, the method will wait until a message arrives.
If you want to exit the consume method, just return Message::ACK | Message::EXIT from the callback function.
Possible return values from the callback function:
Message::ACK- Acknowledge the message and remove from the queueMessage::NACK- Not acknowledge the message and remove from the queue. If the queue has a dead letter queue, the message will be sent to the dead letter queue.Message::REQUEUE- Requeue the messageMessage::EXIT- Exit the consume method
Protocols
| Protocol | URI Example | Notes |
|---|---|---|
| Redis | redis://user:pass@host:port | Default port: 6379 |
Dependencies
All versions of redis-queue-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3 <8.6
ext-curl Version *
ext-redis Version *
byjg/message-queue-client Version ^6.0
ext-curl Version *
ext-redis Version *
byjg/message-queue-client Version ^6.0
The package byjg/redis-queue-client contains the following files
Loading the files please wait ...