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