Memcache Vs. Memcached [duplicate]

They are not identical. Memcache is older but it has some limitations. I was using just fine in my application until I realized you can’t store literal FALSE in cache. Value FALSE returned from the cache is the same as FALSE returned when a value is not found in the cache. There is no way … Read more

How to set up memcached to use unix socket?

You may find that just setting the socket path doesn’t work. Memcached drops privileges before it creates its socket, though after it’s written its PID. It’s common to put the socket in /var/run (e.g. as mysql does), but only root can write there, so create /var/run/memcached and chown it to nobody, then set /var/run/memcached/memcached.sock as … Read more

get all keys set in memcached

Found a way, thanks to the link here (with the original google group discussion here) First, Telnet to your server: telnet 127.0.0.1 11211 Next, list the items to get the slab ids: stats items STAT items:3:number 1 STAT items:3:age 498 STAT items:22:number 1 STAT items:22:age 498 END The first number after ‘items’ is the slab … Read more

Memcache basic configuration

You did not tell us about your OS/distro. Also, you did not tell us how you installed memcached. Usually, you will get a sample config file under /etc/ when you install memcached using apt-get under debian-based systems and rpm or yum under redhat, fedora or centos. If you installed it from source, you may not … Read more