Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用 async redis api(hiredis) 一个连接,因为非阻塞io,所以我认为一个连接对我来说就足够了,但我想弄清楚命令序列是否会先执行先出
文档似乎表明它是先进先出的。 https://github.com/redis/hiredis
在异步上下文中,由于事件循环的性质,命令会自动流水线化
是的,您不需要游泳池。一个连接就足够了。