I am working with node and php , for node , I have heard of redis for cache system and for php memcached
I have tested simple test for setting and getting 10000 items :
memcached was 10X (YES , 10 times) faster than redis and it is easy to say memcached is better in term of speed .
but I have heard that memcached is not scaled like redis , is it true ? I can see that when I want to connect memcache with add server function , I can user multi server , so , why people say that is not good in term of scale ?
why should I use redis instead of memcached in Node ?
If you would dig little more you will find that, memcache is multi-threaded but redis is mostly single threaded (See Single threaded nature of Redis).
So if you would benchmark on an multi-core processor, memcache would be able to scale its performace taking advantage of the cores, where as redis would not.
To compensate for this single threaded nature, redis cluster is being developed (just like node has cluster module). Memcache is already distributed and supports clusters. Redis is expected to roll out the cluster (stable version) by the end of this year. Remember it is still new and memcache is there for a decade now.
Of all the benchmarks I found this one that explains correctly, the aspects of benchmarking. See the last benchmark where there is no parallelism. They perform almost at par.
Regarding the choice between them, this question Is memcached a dinosaur in comparison to Redis? has many good answers particularly this one. The same guy who answered that did these benchmarks :
Also most of the topics you need to know regarding performance and benchamrks are given here, inlcuding all the benchmarks mentioned above.