Re: Memcached Unix Sockets support
Reply #4 –
All I'm going to do for this is change the connection logic to:
$memcached = memcache_connect($server[0], !isset($server[1]) ? 11211 : $server[1]);
Currently it uses empty() on the check so you can't pass a 0 as the port parameter and thats what you need to do to use sockets according to the docs.
Also the helptext needs to be updated with the underlined text
$helptxt['cache_memcached'] = 'If you are using memcached you need to provide the server details. This should be entered as a comma separated list as shown in the example below:
"server1,server2,server3:port,server4"
Note that if no port is specified the software will use port 11211, set this to 0 when using UNIX domain sockets. The system will also attempt to perform rough/random load balancing across the specified servers.';
Maybe in 1.1 we should add weight support as well ...