If you use only one server, it would be much wiser to use APC instead of Memcached. Memcached really shines when you have multiple websites and you need to share the cache. APC will cache things in memory locally, avoiding network trips, as well as the operation cache code, resulting in tremendous speedups!
In any case, to answer your question, you can use the memcached extension. Documentation is available in the PHP manual .
source share