可參考:
http://codeigniter.com/user_guide/libraries/caching.html#memcached
在application/config內加上一個memcached.php,例子如下,
PHP复制代码
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
$config['memcached'] = array(
'hostname' => '127.0.0.1',
'port' => 11211,
'weight' => 1
);
?>
复制代码
|