problems with PHP and memcached
Mon, 7 Jun 2004 23:31:36 -0700
On 06/07/04, Antony Dovgal <email@example.com> wrote:
> > the PECL client's example php code connected to only one memcached,
> > and in trying the code out (using reasonable guesses), i wasn't able
> > to connect to multiple servers. anyone know if it's possible, or if
> > there are any docs anywhere to be found?
> $server1 = memcache_connect('host1', 11211);
> $server2 = memcache_connect('host2', 11211);
> This should help, I believe =)
that is certainly one way to do it. :)
other APIs seem to automatically handle pulling data from multiple
sources, thus treating all the memcacheds as one giant cache. do you
have any plans to support that, or should i just roll my own?
steve simitzis : /sim' - i - jees/
pala : saturn5 productions
www.steve.org : 415.282.9979
hath the daemon spawn no fire?