redis 单线程 阻塞
PHP中文网
PHP中文网 2017-04-26 09:01:28
0
1
571

都说redis是单线程执行命令,假设我测试一个单点redis,数据量在1g左右时,用keys操作应该会把redis堵死,为什么还能进行别的操作?

PHP中文网
PHP中文网

认证0级讲师

reply all (1)
刘奇

The internal implementation of redis uses epoll, using epoll + a simple event framework implemented by itself. Read, write, close and connect in epoll are all converted into events, and then use the multiplexing feature of epoll to never waste any time on io

    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!