无限星辰工作室-客户无限互联网动力之源
标题:
微擎缓存加速设置
[打印本页]
作者:
crx349
时间:
2018-11-26 17:05
标题:
微擎缓存加速设置
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
复制代码
欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/)
Powered by Discuz! X3.4