1, Redis breakdown
When Redis access process is to check whether there is the data Reids, there is no check from the database, after being found deposited into Redis, and then when the data is not in the database, you will have to skip directly fangw Redis database, so it caused great harm to the security of the database
Solution: When the query is empty, null will be saved to the Redis
2, Reids avalanche
Because the data stored in Reids are time sensitive, so that when a large amount of data simultaneously fail, there will be a large number of views while the influx of the database, resulting in a wavy pressure of access to the database,
Solution aging time, different data for different settings of aging, high access frequency can be set longer than for a number of lower access can be set low standard plastic storage time
3, Redis breakdown
When Redis great time in one of Key's views, the key moment when the statute of limitations, there will be a lot of traffic direct access to the database
Solutions for these key can be set to never expire