magicone 发表于 2015-9-16 16:35:59

如何在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);



如何使用第二个呢?谢谢各位老师~

magicone 发表于 2015-9-17 13:54:00

哪位老师快来帮忙~

magicone 发表于 2015-9-18 10:15:35

木有人这么用过吗?

magicone 发表于 2015-10-9 09:59:49

:o:o:o:o
页: [1]
查看完整版本: 如何在ci3中配置两个memcache?