g41797 / queue-valkey
Yii3 Queue Adapter for Valkey NoSQL data store
v0.0.2
2024-07-13 15:17 UTC
Requires
- php: >=8.2
- enqueue/redis: ^0.10.19
- predis/predis: ^2.1.0
- ramsey/uuid: ^4.7
- yiisoft/factory: ^1.0
- yiisoft/friendly-exception: ^1.0
- yiisoft/queue: dev-master
Requires (Dev)
- maglnet/composer-require-checker: ^4.7
- phpunit/phpunit: ^10.5
- rector/rector: ^1.0.3
- roave/infection-static-analysis-plugin: ^1.34
- spatie/phpunit-watcher: ^1.23
- symfony/console: ^6.0
- symfony/process: ^6.0
- vimeo/psalm: ^5.16
- yiisoft/test-support: ^3.0
This package is auto-updated.
Last update: 2024-11-14 06:47:27 UTC
README
Description
Yii3 Queue Adapter for Valkey NoSQL data store is adapter in Yii3 Queue Adapters family.
Implementation of adapter is based on enqueue/redis library.
Requirements
- PHP 8.2 or higher.
Installation
The package could be installed with composer:
composer require g41797/queue-valkey
General usage
- As part of Yii3 Queue Framework
- Stand-alone
Configuration
Default configuration:
[ 'host' => '127.0.0.1', // IP or hostname of the target server 'port' => 6379, // TCP/IP port of the target server 'path' => null, // Path of the UNIX domain socket file used when connecting to Valkey using UNIX domain sockets. ]
Redis support
queue-valkey supports also Redis:
- queue-valkey itself uses existing Redis client libraries
- according to Valkey:
"...Valkey 7.2 is fully compatible with Redis 7.2 and drop-in replacement is fully supported. There is no need to change any of your application code."
Limitations
Job Status
// Push a job into the queue and get a message ID. $id = $queue->push(new SomeJob()); // Get job status. $status = $queue->status($id);
is not supported.
License
Yii3 Queue Adapter for Valkey is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.