flowpack/jobqueue-redis

Last activity on 10 October 2018
  • 7
  • 8
  • 20262
composer require flowpack/jobqueue-redis

Implements concrete Queue for the redis work queue. Requires the packages flowpack/jobqueue-common and the redis PHP extension to be installed.

3.1.1

Implements concrete Queue for the redis work queue. Requires the packages flowpack/jobqueue-common and the redis PHP extension to be installed.

Version
3.1.1
Type
neos-package
Release Date
05.10.2018 15:21:36
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 11db963dbd18080dc05fda1c84df5c130dda8a22

Flowpack.JobQueue.Redis

A job queue backend for the Flowpack.JobQueue.Common package based on redis.

Usage

Install the package using composer:

composer require flowpack/jobqueue-redis

If not already installed, that will fetch its requirements, namely jobqueue-common.

NOTE: This package needs a redis server and the PHP redis extension to be installed

Now the queue can be configured like this:

Flowpack:
  JobQueue:
    Common:
      queues:
        'some-queue':
          className: 'Flowpack\JobQueue\Redis\Queue\RedisQueue'
          executeIsolated: true
          options:
            client:
              host: 127.0.0.1
              port: 6379
              database: 15
              password: 'some long secret'
            defaultTimeout: 20

Specific options

The RedisQueue supports following options:

Option Type Default Description
defaultTimeout integer 60 Number of seconds new messages are waited for before a timeout occurs (This is overridden by a "timeout" argument in the waitAndTake() and waitAndReserve() methods
client array ['host' => '127.0.0.1', 'port' => 6379, 'database' => 0, 'timeout' => <defaultTimeout * 1.5>, password => ''] Redis connection settings

Submit options

The RedisQueue currently doesn't support any custom submit options

Release options

The RedisQueue currently doesn't support any custom release options

License

This package is licensed under the MIT license

Contributions

Pull-Requests are more than welcome. Make sure to read the Code Of Conduct.

The content of the readme is provided by Github
The same vendor provides 49 package(s).