crx349 发表于 2018-11-26 17:05:23

微擎缓存加速设置

2者不能同时开启

memcache

$config['setting']['cache'] = 'memcache';
// --------------------------CONFIG MEMCACHE--------------------------- //
$config['setting']['memcache']['server'] = '127.0.0.1';
$config['setting']['memcache']['sql'] = 'memcache';
$config['setting']['memcache']['port'] = 11211;
$config['setting']['memcache']['pconnect'] = 1;
$config['setting']['memcache']['timeout'] = 30;
$config['setting']['memcache']['session'] = 1;





redis:


$config['setting']['cache'] = 'redis';
// --------------------------CONFIG REDIS--------------------------- //
$config['setting']['redis']['server'] = '127.0.0.1';//如果redis服务器在别的机器,请填写机器的IP地址。
$config['setting']['redis']['port'] = 6379;
$config['setting']['redis']['pconnect'] = 0;
$config['setting']['redis']['timeout'] = 1;
$config['setting']['redis']['requirepass'] = '';
$config['setting']['redis']['session'] = 1; //session存储方式redis

页: [1]
查看完整版本: 微擎缓存加速设置