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

Arun Gandhi's Blog: 15 methods to speed up PHP based website’s performance

Developer.com: DB2 Universal Database and the PHP Developer? Absolutely!

Sandro Groganz's Blog: Useful Extensions for WordPress and MediaWiki

Wez Furlong\'s Blog: More PDO PECL Releases

Adam Hosker's Blog: Differences Between PHP 4 and 5


Community Events





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


interview list update podcast install tips zendserver community opinion framework introduction api language deployment package library release symfony series laravel

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