SharedConfigurations.php 726 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. require __DIR__.'/../lib/Predis/Autoloader.php';
  11. Predis\Autoloader::register();
  12. $single_server = array(
  13. 'host' => '127.0.0.1',
  14. 'port' => 6379,
  15. 'database' => 15
  16. );
  17. $multiple_servers = array(
  18. array(
  19. 'host' => '127.0.0.1',
  20. 'port' => 6379,
  21. 'database' => 15,
  22. 'alias' => 'first',
  23. ),
  24. array(
  25. 'host' => '127.0.0.1',
  26. 'port' => 6380,
  27. 'database' => 15,
  28. 'alias' => 'second',
  29. ),
  30. );