Redis目前在绝大多数的项目中扮演怎样的角色
ringa_lee
ringa_lee 2017-04-22 09:00:32
0
7
556

自己工作中没太多机会接触到需要使用这技术的项目,目前memcache已经被redis所取代,很想知道redis在项目中扮演怎样的角色,是作为功能更强大的但依旧是数据缓存的角色,还是说已经可以胜任并取代MySQL地位的角色了

ringa_lee
ringa_lee

ringa_lee

reply all (7)
Peter_Zhu

At the core for me.
1. Persistence is already very mature,
2.io performance is impressive,
3. The simple k-v structure can be combined to create various data structures, such as documents, trees, graphs, and networks
4. It’s so comfortable to be able to set up a life cycle for data

The data runs cutely in the memory. Anyway, you can be willful if you have money.

    刘奇

    It cannot replace mysql. First, it does not have the functions of SQL and has no concept of relationships. Second, its data persistence and transaction management functions are far inferior to mysql. It can currently replace the simpler memcache as a cache server with a variety of data structures.

      小葫芦

      The previous location of program and database

        黄舟

        Redis is not very reliable as a database
        1. Too few supported data types
        2. The query function is too weak
        3. Data is not stored to disk in real time

          巴扎黑

          Mainly cache some data that needs to be accessed frequently

            伊谢尔伦

            Most websites now don’t require frequent logins. Generally, sessions are stored in the database. I only use redis for this job

              洪涛

              A queue to save hot data

                Latest Downloads
                More>
                Web Effects
                Website Source Code
                Website Materials
                Front End Template
                About us Disclaimer Sitemap
                php.cn:Public welfare online PHP training,Help PHP learners grow quickly!