用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3942|回复: 2
收起左侧

[版本 2.x] 关于CI的Memcached缓存适配器

[复制链接]
发表于 2012-6-5 11:23:05 | 显示全部楼层 |阅读模式
文档里说:
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这个配置文件?



发表于 2012-6-5 11:30:45 | 显示全部楼层
请自己在该目录创建,内容默认如下

$config['memcached'] = array(
          'hostname' => '127.0.0.1',
          'port'        => 11211,
          'weight'    => 1
);
发表于 2012-6-5 12:42:10 | 显示全部楼层
按着楼上的方式试试

本版积分规则