News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Moon's Blog:
PHP and Memcached The state of things
June 24, 2010 @ 09:28:32

In a new post to his blog Brian Moon takes a look at two of the memcache PHP libraries (memcache/memcached) and looks at some of the issues that might trip you up in using them.

Memcached is the de facto standard for caching in dynamic web sites. PHP is the one of the most widely used languages on the web. So, naturally there is lots of interest in using the two together. There are two choices for using memcached with PHP: PECL/memcache and PECL/memcached. Great names huh? But as of this writing there are issues with the two most popular Memcached libraries for PHP.

On the "memcache" side of things, he talks about the age of the code (not much recent development), a timeout-related parameter to the delete method and the 3.0 beta release that, in his words, "just needs to die". For the "memcached" extension things look a little brighter but there still hasn't been a stable release in over a year, at least not on the PECL side. The github repo, however, has seen quite a bit of change. The most major bug he found with this extension has to do with persistent connection leakage.

So, what should you do as a PHP developer? If you are deploying memcached today, I would use the 2.2.x branch of PECL/memcache. It is the most stable. Just avoid the delete bug. It is not as fast and does not have the features. But, it is very reliable for set, get, add.... the basics of memcached.
0 comments voice your opinion now!
memcache cache pecl extension memcached compare


blog comments powered by Disqus

Similar Posts

Community News: Latest PECL Releases for 02.12.2008

Christian Stocker's Blog: Upload Progress Meter extension 0.9.2 released

Community News: Latest PECL Releases for 03.06.2007

Stuart Herbert's Blog: Quick Tip: Get, Set and Query in One Method

DevShed: Debugging Program Flow with the Xdebug Extension


Community Events





Don't see your event here?
Let us know!


interview framework introduction list library threedevsandamaybe series release project configure code language podcast laravel bugfix wordpress application community api developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework