Development Performance PHP

Authored by Corey Ballou


PHP Memcache vs. Memcached

You may or may not be aware, but PHP has two separate module implementations wrapping the memcached (as in memcache daemon) server.
The memcache module utilizes this daemon directly, whereas the memcached module wraps the libMemcached client library and contains some added bonuses.
Both modules have built-in support for session handling, which can be specified in your php.ini file using session.save_handler = memcache[d].

You may see speed improvements if you decide to go with the full-blown install of the memcached module. The primary reason for this would be it’s use of the igbinary PHP extension; a drop in replacement for PHP’s serializer. There is currently a 2.0 beta (RC1) with a number of goodies.

I don’t enjoy re-creating the wheel, so instead I’ve compiled a series of pages I’ve found helpful in the past regarding these two modules for you to make your own decisions.

Memcache/Memcached References

I have compiled a series of the most useful links for your reading pleasure. You’ll be an expert in no time.

Author: Corey Ballou

Corey Ballou is the CEO of Whether you're a student, young professional, entrepreneur, startup, or small business, you can be up and online fast with your own custom domain, email, and webpage on POP. Corey is a professional PHP developer by trade, specializing in custom web applications development for startups, small businesses, and agencies. Follow Corey on Twitter @cballou.