mirror of
https://github.com/predis/predis.git
synced 2026-08-20 19:51:51 +00:00
31 lines
600 B
PHP
31 lines
600 B
PHP
<?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',
|
|
),
|
|
);
|