Failed to connect to memcache host !

# memcached -u memcached -d -m 30 -l 127.0.0.1 -p 11211 You’ll notice there is “-l 127.0.0.1” in your command line. This tells memcached to only listen on the lo interface. If you want to access it from a remote machine, you need to remove this part of the command line.

Add vs Set in Memcached

You’ve pretty much got the answer to your first question already: the intent of ADD is to only work when a key doesn’t already exist, while SET is there to update the value, regardless of whether it already exists. If you’re familiar with SQL, it’s (roughly) like the difference between INSERT queries (ADD) and UPDATE … Read more

When should I use Memcache instead of Memcached?

Memcached client library was just recently released as stable. It is being used by digg ( was developed for digg by Andrei Zmievski, now no longer with digg) and implements much more of the memcached protocol than the older memcache client. The most important features that memcached has are: Cas tokens. This made my life … Read more