Alex Rivera | Logout

When should I use Memcache instead of Memcached?

Asked 2009-09-18T03:07:52.737
334

It seems that PHP has two memcached libraries named memcache and memcached. What is the difference and how do you know which one to use? Is one outdated? It seems that memcached offers more methods so I would assume that means it has had the most development - but it also seems to require external C/C++ libraries so I'm not sure if I can install it.

It seems that memcache has been around longer, does not require additional libraries, and has pre-compiled binaries for even windows! I would think that it would be the better choice for now. However, being new to memcached (server) I'm not sure if there is some super important features in memcached (php) that make it worth the extra trouble.

Edit
Report

2 Answers

10

When using Windows, the comparison is cut short: memcache appears to be the only client available.

answered 2012-07-31T19:41:03.407
8

Memcached is a newer API, it also provides memcached as a session provider which could be great if you have a farm of server.

After the version is still really low 0.2 but I have used both and I didn't encounter major problem, so I would go to memcached since it's new.

answered 2009-09-18T03:15:27.840

Your Answer