PHP API Unix Socket Connect

Tsz Ming WONG tszming at gmail.com
Mon Oct 16 03:08:35 UTC 2006


On 10/16/06, Mikael Johansson <mikael at synd.info> wrote:
>
> The CVS version of pecl/memcache now supports unix domain sockets, you
> can checkout and build a copy as
>
> cvs -d :pserver:cvsread at cvs.php.net:/repository checkout pecl/memcache
> cd pecl/memcache
> phpize
> ./configure
> make
> make install
>
> Connect to the server like
>
> $memcache = new Memcache();
> $memcache->addServer('unix:///var/run/memcached/memcached.sock', 0);
>
> Please note that the port number must be set to 0 (otherwise it defaults
> to 11211.) The socket must also be writable by the user your script run
> as, for example the webserver user.
>
> //Mikael
>
> Craig Wood wrote:
> > Has anyone seen, used or heard of the unix socket connection being used
> > successfully with PECL's PHP memcache API or any other PHP memcache API
> ?
> >
> >
>


hello,

will there be any performance boost in using the unix socket? any benchmark
result?


Best Regards,
Tsz Ming
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20061016/0c6731d2/attachment.html


More information about the memcached mailing list