SharedConfigurations.php 681 B

123456789101112131415161718192021222324252627282930313233
  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__.'/../autoload.php';
  11. $single_server = array(
  12. 'host' => '127.0.0.1',
  13. 'port' => 6379,
  14. 'database' => 15
  15. );
  16. $multiple_servers = array(
  17. array(
  18. 'host' => '127.0.0.1',
  19. 'port' => 6379,
  20. 'database' => 15,
  21. 'alias' => 'first',
  22. ),
  23. array(
  24. 'host' => '127.0.0.1',
  25. 'port' => 6380,
  26. 'database' => 15,
  27. 'alias' => 'second',
  28. ),
  29. );