幻想曲 发表于 2012-6-5 11:23:05

关于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这个配置文件?



乌有 发表于 2012-6-5 11:30:45

请自己在该目录创建,内容默认如下

$config['memcached'] = array(
          'hostname' => '127.0.0.1',
          'port'      => 11211,
          'weight'    => 1
);

kissgxd 发表于 2012-6-5 12:42:10

按着楼上的方式试试
页: [1]
查看完整版本: 关于CI的Memcached缓存适配器