如何在ci3中配置两个memcache?
配置了两个memcache$config = array(
'default' => array(
'hostname' => 'localhost',
'port' => '11211',
'weight' => '1',
),
'test' => array(
'hostname' => 'localhost',
'port' => '12222',
'weight' => '2',
),
);
可以使用第一个
$this->load->driver('cache',array('adapter' => 'memcached'));
$this->cache->memcached->save($ip, 1, 86400);
$this->cache->memcached->get($ip);
如何使用第二个呢?谢谢各位老师~
哪位老师快来帮忙~ 木有人这么用过吗? :o:o:o:o
页:
[1]