search

Home  >  Q&A  >  body text

redis 单线程 阻塞

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

PHP中文网PHP中文网2794 days ago641

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-26 09:03:28

    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

    reply
    0
  • Cancelreply