php redis有关问题
php redis问题
查阅了一下资料关于redis的,connect连接,quit的话就关闭连接。
但是php的redis貌似只有连接函数,没有关闭函数。
难道不需要关闭么?这样的话过多的连接岂不是会导致redis变慢,还是它有自己的回收机制?那这个是在什么时候断开连接的呢?
------解决方案--------------------
From my findings, if your clients are calling a local Redis instance where connections are really cheap (i.e. essentially a No Op) then connection pooling is actually slower then creating a new connection every time. However in the normal scenario where your clients are calling a networked Redis instance I've found connection pooling improves perf by about 8-14%.
https://groups.google.com/forum/?fromgroups=#!topic/redis-db/QQdp11TL2_g
这个之前有人讨论过,希望这个帖子对你有帮助。
------解决方案--------------------
php可以不需要关心关闭这一动作,它与memcache、mysql机制不太一样。

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

Windows11安裝10.0.22000.100跳出0x80242008錯誤解決方法
