search

Home  >  Q&A  >  body text

nosql - redis 的使用场景一般是什么样的

redis 的使用场景一般是什么样的,什么情况下用 redis,有什么好处和注意事项?

ringa_leeringa_lee2847 days ago693

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-21 10:59:42

    Usage scenarios that I have currently experienced and understood:
    1. Data that has requirements for the cached data structure.
    2. Cache relational structure data.
    3. Cache the corresponding primary key in mysql.

    What are the benefits? It stores memory and has fast access speed. It is generally used to reduce the reading and writing pressure of relational databases such as MySQL. Note that you must first plan the capacity of redis. Redis is not suitable for storing large data (pictures...). There is also the use of keys. Operations such as "key *" are very time-consuming. It is recommended to start with the official documents. http://redis.io/documentation :)

    reply
    0
  • Cancelreply