comparison of Redis and Memcache:
Memcached:
Memcached is a free and open source, high performance, distributed memory Object caching system .
In essence, it is a concise key-value database (storage System), key-value pairs;
The general purpose is to reduce the number of database accesses by caching database query results to improve the speed and scalability of dynamic Web applications.
Redis:
Redis is a key-value storage system.
Redis is a high-performance Key-value database ;
Redis and Memcache differences:
1. Storage mode:
Memecache the data are all in memory, the power will be hung off, the data can not exceed the size of memory;
Redis is partially present on the hard drive, which guarantees the data's durability.
2. Data support type:
Redis has much more data support than Memecache, and Redis not only supports simple k/v-type data, but also provides storage for data structures such as List,set,hash.
3, using the underlying model is different:
The new version of Redis directly builds its own VM mechanism, because a system function called by a general system can waste a certain amount of time moving and requesting.
4, the operating environment is different:
Redis is now officially supported only by Linux, eliminating the support for other systems, so that the system can be used with greater effort.
Environment optimization, although Microsoft later had a team to write patches for it, but did not put it on the trunk.
Comparison of Redis and Memcache