关于CI的Memcached缓存适配器
文档里说:Memcached 缓存使用分布式 Memcached 服务器 可以通过配置文件: memcached.php 来配置,该文件在 application/config/ 目录下.
All of the functions listed above can be accessed without passing a specific adapter to the driver loader as follows:
但我这边为什么在application/config中找不到memcached.php这个配置文件?
请自己在该目录创建,内容默认如下
$config['memcached'] = array(
'hostname' => '127.0.0.1',
'port' => 11211,
'weight' => 1
); 按着楼上的方式试试
页:
[1]