memcached

Question: Hey, my friend at Y! vertical search is looking for a decent memcached library in PHP but he says apparently too many of them. I haven’t even looked at the problem since I’ve never hit that sort of load with my session store yet.

Any suggestions of one library/code snippet in particular? Something quick and dirty.

Answer (Don MacAskill of SmugMug): I think he’s probably best off to use the PECL memcache extension. In our tests, it was 3X the performance of our heavily-optimized handwritten PHP library, even with persistent connections disabled.

It supports HA features, too, for installations with multiple instances, so the cache doesn’t get mis-aligned.

About tychay

light writing, word loving, ❤ coding
This entry was posted in PHP. Bookmark the permalink.

One Response to memcached

  1. George S says:

    I concur with Dan, the PECL library is the way to go.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>