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

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

Alexey Zakhlestin's Blog: Syck for PHP goes Beta (in PECL)

C. Sadeesh Kumar's Blog: Smart File Type Detection Using PHP

Christopher Jones' Blog: Oracle Announces New Connection Pooling Feature

Community News: Latest PECL Releases for 10.30.2007


Community Events

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


laravel api php7 application opinion project symfony part2 language podcast framework list community introduction example composer interview series yii2 programming

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