<?php spl_autoload_register(function($class) { $file = __DIR__.'/../lib/'.strtr($class, '\\', '/').'.php'; if (file_exists($file)) { require $file; return true; } }); $single_server = array( 'host' => '127.0.0.1', 'port' => 6379, 'database' => 15 ); $multiple_servers = array( array( 'host' => '127.0.0.1', 'port' => 6379, 'database' => 15, 'alias' => 'first', ), array( 'host' => '127.0.0.1', 'port' => 6380, 'database' => 15, 'alias' => 'second', ), ); ?>