PHP memcached extension
lists at cyberlot.net
Tue Sep 6 05:23:32 PDT 2005
I use the pecl extension and have never used the other extension but I
can see multi-server support as a good thing.
Just because it has multi-server support doesn't mean you HAVE to use
it, you could still do as you suggest.
The great thing about having multiserver support is you don't have to
manage it, Also I would suspect it has built in failover.. If one server
goes down it starts using the others right away, Programming that on the
PHP side while possible just doesn't make sense if you don't have to.
Richard Thomas - CEO
Cyberlot Technologies Group Inc.
507.398.4124 - Voice
Antony Dovgal wrote:
> On 04.09.2005 16:26, Russ Garrett wrote:
>> > Joel Lee wrote:
>>> >> http://us3.php.net/memcache
>>> >> >> I am using this and it works great. I'm not sure if the
>>> "best" PHP >> API is some topic of hot debate or not, I assume there
>>> must have been >> some problem or the links wouldn't have been
>>> pulled. >> >> Anyway, my vote is for this, an actual PHP
>>> extension. To me, this >> seems the most formal, recognized effort
>>> to bring memcached to the PHP >> environment.
>> > > The main issue with that extension is that it doesn't have
>> built-in > multi-server support.
> Not precisely true.
> See this pseudo-code:
> $first_server = new Memcache(...);
> $second_server = new Memcache(...);
> $third_server = new Memcache(...);
> $fourth_server = new Memcache(...);
> Nothing prevents you from using as much servers as you want in the
> same time.
> I'm a strong believer that it's better to write couple of lines in PHP
> and have 100% flexible API then to hardcode some logics into the
> extension and have to work around it every time to get the desired
>> >The "mcache" > (http://www.klir.com/~johnm/php-mcache/) extension is
>> better > feature-wise, and it's also based on the fairly widely-used
> I'm just curious: besides this "multi-serverness" what are the
> additional features it offers?
> Comparing to http://php.net/memcache, of course.
More information about the memcached