| 
 | 
 
配置了两个memcache 
PHP复制代码 $config = array(
        'default' => array(
                'hostname' => 'localhost',
                'port'     => '11211',
                'weight'   => '1',
        ),
        
        'test' => array(
                'hostname' => 'localhost',
                'port'     => '12222',
                'weight'   => '2',
        ),
);
   复制代码 
 
 
可以使用第一个 
PHP复制代码  
$this->load->driver('cache',array('adapter' => 'memcached'));
$this->cache->memcached->save($ip, 1, 86400);
$this->cache->memcached->get($ip);
   复制代码 
 
 
如何使用第二个呢?谢谢各位老师~ 
 
 |   
 
 
 
 |