problems with PHP and memcached

Brad Fitzpatrick brad@danga.com
Tue, 8 Jun 2004 11:03:49 -0700 (PDT)


> >, and in looking through the source and the
> > included example code, it wasn't clear in the slightest whether or not
> > the client would support connecting to memcacheds running on multiple
> > machines. so, i chose a client that had docs and overtly supported all
> > of the features i wanted to use.
>
> No, it doesn't.
> PECL module has nothing to do with multiple servers.
> Just write your own app, which will handle as much servers as you
> want.
...
> $server1 = memcache_connect('host1', 11211);
> $server2 = memcache_connect('host2', 11211);
> ?>
> This should help, I believe =)

Lame.  :-)

C'mon... write a layer on top which does hashing to different server
buckets.  Just steal all the Perl module's logic!

- Brad