This is my first post in this web and I'd like to share my simple and short test between Memcached and Redis. The test was performed against single memcached server and also single redis server. This is the code that I used for the test:
This is the test result (in seconds)
The first test is fresh, that means Memcached is empty and Redis, as well. Next tests are not fresh, I used the latest state from the previous test.
Actually, I believed memcached is faster, in the first place. But I don't have any proof to support it. This test brings conclusion that Memcached is faster than Redis in both set and get processes. That means it's better for you to use memcached as your caching engine. Memcached and Redis are known for their advantage in distributed system. Therefore, next test should be testing against distributed Memcached and Redis servers.
That's all, folks!