无限星辰工作室-客户无限互联网动力之源

标题: 微擎缓存加速设置 [打印本页]

作者: crx349    时间: 2018-11-26 17:05
标题: 微擎缓存加速设置
2者不能同时开启

memcache

  1. $config['setting']['cache'] = 'memcache';
  2. // --------------------------  CONFIG MEMCACHE  --------------------------- //
  3. $config['setting']['memcache']['server'] = '127.0.0.1';
  4. $config['setting']['memcache']['sql'] = 'memcache';
  5. $config['setting']['memcache']['port'] = 11211;
  6. $config['setting']['memcache']['pconnect'] = 1;
  7. $config['setting']['memcache']['timeout'] = 30;
  8. $config['setting']['memcache']['session'] = 1;

复制代码




redis:


  1. $config['setting']['cache'] = 'redis';
  2. // --------------------------  CONFIG REDIS  --------------------------- //
  3. $config['setting']['redis']['server'] = '127.0.0.1';//如果redis服务器在别的机器,请填写机器的IP地址。
  4. $config['setting']['redis']['port'] = 6379;
  5. $config['setting']['redis']['pconnect'] = 0;
  6. $config['setting']['redis']['timeout'] = 1;
  7. $config['setting']['redis']['requirepass'] = '';
  8. $config['setting']['redis']['session'] = 1; //session存储方式redis
复制代码







欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/) Powered by Discuz! X3.4