SharedConfigurations.php 600 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. spl_autoload_register(function($class) {
  3. $file = __DIR__.'/../lib/'.strtr($class, '\\', '/').'.php';
  4. if (file_exists($file)) {
  5. require $file;
  6. return true;
  7. }
  8. });
  9. $single_server = array(
  10. 'host' => '127.0.0.1',
  11. 'port' => 6379,
  12. 'database' => 15
  13. );
  14. $multiple_servers = array(
  15. array(
  16. 'host' => '127.0.0.1',
  17. 'port' => 6379,
  18. 'database' => 15,
  19. 'alias' => 'first',
  20. ),
  21. array(
  22. 'host' => '127.0.0.1',
  23. 'port' => 6380,
  24. 'database' => 15,
  25. 'alias' => 'second',
  26. ),
  27. );