Welcome Guest, Not a member yet? Register   Sign In
CI 2.0 missing memcache config file
#4

[eluser]Victor Michnowicz[/eluser]
Yeah, I assumed it was in there as well. I think something like this would go in your memcached.php config file (I have not tested this):

Code:
<?php

$config['memcached'] = array(
    'server_1' => array(
        'host' => '127.0.0.1',
        'port'        => 11211,
        'weight'    => 1
    ),
    'server_2' => array(
        'host' => '127.0.0.2',
        'port'        => 11211,
        'weight'    => 1
    ),
    'server_3' => array(
        'host' => '127.0.0.3',
        'port'        => 11211,
        'weight'    => 1
    )
);

You also gotta remember that memcached is different than memcache. That got me for a while... I created (really just search/replaced) a memcache driver if you are interested. It seems to work well for me.


Messages In This Thread
CI 2.0 missing memcache config file - by El Forum - 02-02-2011, 01:17 PM
CI 2.0 missing memcache config file - by El Forum - 02-02-2011, 06:32 PM
CI 2.0 missing memcache config file - by El Forum - 02-02-2011, 08:16 PM
CI 2.0 missing memcache config file - by El Forum - 02-02-2011, 09:17 PM
CI 2.0 missing memcache config file - by El Forum - 02-05-2011, 07:09 PM
CI 2.0 missing memcache config file - by El Forum - 02-08-2011, 09:25 AM
CI 2.0 missing memcache config file - by El Forum - 02-08-2011, 11:47 AM
CI 2.0 missing memcache config file - by El Forum - 02-08-2011, 01:52 PM
CI 2.0 missing memcache config file - by El Forum - 02-09-2011, 08:43 AM
CI 2.0 missing memcache config file - by El Forum - 02-09-2011, 08:44 AM
CI 2.0 missing memcache config file - by El Forum - 08-17-2011, 03:02 PM
CI 2.0 missing memcache config file - by El Forum - 08-17-2011, 03:37 PM
CI 2.0 missing memcache config file - by El Forum - 03-06-2012, 04:39 AM
CI 2.0 missing memcache config file - by El Forum - 07-25-2013, 12:56 AM
CI 2.0 missing memcache config file - by El Forum - 09-04-2014, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB