redis

Rhubarb currently supports one **redis** connectors:

predis/predis

Configuration

The configuration of the predis/predis implementation for Rhubarb is comprised of the following key hierarchy:

  • broker
    • type: the broker class name without the namespace

    • options: the broker specific options
      • exchange: the name of the target exchange
      • uri: the amqp server/cluster uri (it should match your celery worker configuration)
  • result_store
    • type: the result_store class name without the namespace

    • options: the result_store specific options
      • exchange: the name of the target exchange
      • uri: the amqp server/cluster uri (it should match your celery worker configuration)

Note

These options SHOULD match your celery worker configuration.

  $options = array(
      'broker' => array(
          'type' => 'Predis',
          'options' => array(
              'exchange' => 'celery',
              'connection' => 'redis://localhost:6379/1'
          )
      ),
      'result_store' => array(
          'type' => 'Predis',
          'options' => array(
              'exchange' => 'celery',
          )
      )
  );

$rhubarb = new \Rhubarb\Rhubarb($options);

Table Of Contents

Previous topic

AMQP

Next topic

Mongo