2017 © Pedro Peláez
 

library beanstalkd-cluster

beanstalkd cluster.

image

fsth/beanstalkd-cluster

beanstalkd cluster.

  • Tuesday, November 1, 2016
  • by qiqisan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 217 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

redis-client

beanstalkd cluster on client to distribute

usage

$configs = array(
    array(
        'name' => 'test1',
        'tubeNames' => array('tubeName1', 'tubeName2'),
        'hosts' => array(
            array('host' => '127.0.0.1', 'port' => '11300'),
        )
    ),
    array(
        'name' => 'test2',
        'tubeNames' => array('tubeName3', 'tubeName4'),
        'hosts' => array(
            array('host' => '127.0.0.1', 'port' => '11301'),
            array('host' => '127.0.0.1', 'port' => '11302'),
        )
    )
);
$proxy = new \FSth\BeanstalkdCluster\Business\Proxy();
$proxy->initWithConfig($configs);

$host = $proxy->lookup('tubeName1'); // return array('host','port') port in ('11300');

$host = $proxy->lookup('tubeName3'); // return array('host','port') port in ('11301', '11302');

The Versions

01/11 2016

dev-master

9999999-dev

beanstalkd cluster.

  Sources   Download

MIT

The Requires

 

01/11 2016

v0.1.0

0.1.0.0

beanstalkd cluster.

  Sources   Download

MIT

The Requires