Simply compare the difference between Redis and memcached, Most will receive the following view:
1 Redis not only supports simple k/v types of data, but also provides storage of data structures such as List,set,hash.
2 backup of Redis support data , which is a data backup of Master-slave mode. BR style= "Color:rgb (50,62,50); Font-family:simsun;font-size:14px;white-space:normal;background-color:rgb ( 232,232,232); " >
3 redis supports data persistence , which keeps the in-memory data on disk and can be loaded again when it is restarted.
throw these away, You can delve into the internal structure of Redis to see more essential differences and understand the design of Redis.
This feature allows Redis to maintain data that is larger than the memory size of its machine itself. Of course, the memory of the machine itself must be able to maintain all the keys, after all, the data will not be swap operations. Also, since Redis swaps the in-memory data to disk, the main thread that provides the service and the sub-thread that is doing the swap will share this memory, so if you update the data that needs swap, REDIS will block the operation until the sub-thread completes the swap operation before it can be modified .
This article from "Write a blog Money" blog, please be sure to keep this source http://dadonggg.blog.51cto.com/12672150/1949821
Redis and memcached differences