I. Concept:
Redis is a key-value storage system.
Redis supports sorting in a variety of different ways. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to disk or writes the modified operation to the appended record file, and Master-slave (Master-Slave) synchronization is implemented on this basis.
Redis is a high-performance Key-value database. The emergence of Redis, to a large extent, compensates for the lack of memcached such key/value storage, in some cases can be a good complement to the relational database. It provides the python,ruby,erlang,php client, which is very convenient to use.
Redis offers five types of data: String,hash,list,set and Zset (sorted set).
Memcache is a high-performance distributed memory object caching system that can be used to store data in a variety of formats, including images, videos, files, and database retrieval results, by maintaining a unified, huge hash table in memory. The simple thing is to call the data into memory and then read it from memory, which greatly improves the reading speed.
Two. Difference:
Memcache is faster than Redis. Redis's management of Key,value is more flexible.
Redis can put the memory data on the disk.
This article is from the "Linux" blog, so be sure to keep this source http://520and519.blog.51cto.com/2254416/1587451
Comparison of Redis and Memcache