Recently I started (finally) with implementing caches for our php projects. I extended the database class with additional query methods utilising memcache.
While writing some unit tests, i was confused by the documentation of php regarding memcache.
I always wondered why there was a pecl/memcache and a pecl/memcached. I assumed one was the client API, the other the server API (or something similar).
Seems that both are libraries providing methods for accessing the memcached (memcache daemon).
You have to choose one! or use them both… but you have to be very aware which one you are using :)
I have chosen to use memcached. Primarly because it’s only a wrapper to libmemcached (which is a big plus in my eyes).