colly
2017-07-29 86c1b949e3b5b8a0b148000afd3831f39a0c41ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * Redis缓存配置
 * @author: 喵了个咪 <wenzhenxi@vip.qq.com> 2015-11-15
 */
 
return array(
    //Redis配置项
    'redis' => array(
        //Redis缓存配置项
        'servers'  => array(
            'host'   => '127.0.0.1',        //Redis服务器地址
            'port'   => '6379',             //Redis端口号
            'prefix' => 'yfs_',      //Redis-key前缀
            'auth'   => 'yfs_moral_password2017',    //Redis链接密码
        ),
        // Redis分库对应关系
        'DB'       => array(
            'developers' => 1,
            'user'       => 2,
            'code'       => 3,
        ),
        //使用阻塞式读取队列时的等待时间单位/秒
        'blocking' => 5,
    ),
 
);