MySQL database: Data is stored as "file" on the hard drive
The bottleneck of the website is the database access,mysql database is running on the hard disk, put the data in memory speed is much faster
Redis is a memory cache database, written in C, with data model key-value, supported data types , String list Hash set sorted set, which can be persisted to ensure data security
Two forms of caching:
Page caching, commonly used in CMS -Class Systems
Data caching, commonly used in page-specific data
Comparison of Redis and memcache
Redis not only supports key-value but also supports other data types list set Zset hash
Redis supports master-slave mode applications (master-slave)
Redis supports data persistence, can save in-memory data on the hard disk, restart the time to load the use of
the maximum limit for Redis to support a single value is 1GB, andmemcache only supports 1MB
Sun 's use of Redis up to
[Redis] Introduction to Redis