cancel
Showing results for 
Search instead for 
Did you mean: 

Redis vs Memcached, which does Magento recommend?

SOLVED

Redis vs Memcached, which does Magento recommend?

I'm curious which platform magento recommends for cache storage?

 

I know Magento works with both and both are full featured and that some developers prefer one over the other, but what I'm more curious about is which one would Magento say, "This is our standard."

 

Thanks,

Luke

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Redis vs Memcached, which does Magento recommend?

These days, Redis is the preferred solution for anything related to cache storage. It is faster, more robust, and even has built-in support in the latest versions of Magento.

 

Magento specifically states this:
http://devdocs.magento.com/guides/m1x/ce18-ee113/using_redis.html

 

Also reference:
http://stackoverflow.com/questions/10558465/memcached-vs-redis

View solution in original post

10 REPLIES 10

Re: Redis vs Memcached, which does Magento recommend?

These days, Redis is the preferred solution for anything related to cache storage. It is faster, more robust, and even has built-in support in the latest versions of Magento.

 

Magento specifically states this:
http://devdocs.magento.com/guides/m1x/ce18-ee113/using_redis.html

 

Also reference:
http://stackoverflow.com/questions/10558465/memcached-vs-redis

Re: Redis vs Memcached, which does Magento recommend?

Clustering is not possible in Memcached but its possible in Redis.

Both doesn have its own pros and cons. But as far as magento's concern Redis is better than Memcached.

 

This blog have some details information about both.

 

http://www.infoworld.com/article/2825890/application-development/why-redis-beats-memcached-for-cachi...

Re: Redis vs Memcached, which does Magento recommend?

Redis for cache backend, probably another instance for sessions. but memcached for sessions is good too.

------------
MagenX - Magento and Server optimization

Re: Redis vs Memcached, which does Magento recommend?

There is no official Redis vs Memcache however if you speak to Magento ECG team you will find they recommend Redis for Cache and Full Page Cache as it allows you to store cache+tags in the same memory rather then having to store extra data in the database thus performs better.

 

I personally use Redis for Sessions, Cache and Full Page Cache and make sure I have a seperate instance per type since Redis is not threaded.

--
Problem solved? Click Accept as Solution!

Re: Redis vs Memcached, which does Magento recommend?

I prefer memcached as it's easier to configure compared to Redis

Re: Redis vs Memcached, which does Magento recommend?

Kudos for the clusering note.  It may actually be technically possible to accomplish, but there's no auto-discovery of other nodes in the cluster and it's a pain to configure compared to Redis, so you wind up having to manually tell each node where are the other members of the cluser which to me defeats one of the main goals of a cluster in the first place - AUTOMATED expansion and contraction based on load.

------------------------
Bryan "BJ" Hoffpauir - Contact me on my Blog!

Contact me at work via AOE - the open web company online!



Re: Redis vs Memcached, which does Magento recommend?

I am considering Redis now but what do you think about the new LiteMage cache http://www.litespeedtech.com/products/litemage-cache/overview ? Too good to be true or in real life most cache will be not so different? If so I would go with the easier to configure and maintain.

Re: Redis vs Memcached, which does Magento recommend?

Redis/Memcache advantages are only for more than one server. If you use Redis on a dedicated server you can achieve poor results than using the standard way storing in the file system. Once you have let's say 3 servers you will feel the real power of Redis.

Re: Redis vs Memcached, which does Magento recommend?

Only correct if you are on a single server and storing sessions/cache in a memory based tmp folder.

If your storing on disk then you will still be limited by disk performance.
--
Problem solved? Click Accept as Solution!