Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.48 KB

redis.rst

File metadata and controls

49 lines (36 loc) · 1.48 KB

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);