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
复制代码
|
|
|
|
|