redis配置

$config['cache']['type']  = 'redis';

// $config['memcache']['prefix']       = 'nc_';

// $config['memcache'][1]['port']      = 11211;

// $config['memcache'][1]['host']      = '127.0.0.1';

// $config['memcache'][1]['pconnect']  = 0;

$config['redis']['prefix']       = 'nc_';

$config['redis']['master']['port']      = 6379;

$config['redis']['master']['host']      = '192.168.0.30';

$config['redis']['master']['pconnect']  = 0;

$config['redis']['slave']           = array();

原文地址:https://www.cnblogs.com/php-rearch/p/5079771.html