久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Memcached 與 APC 我應該選擇哪一個?

Memcached vs APC which one should I choose?(Memcached 與 APC 我應該選擇哪一個?)
本文介紹了Memcached 與 APC 我應該選擇哪一個?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我閱讀了這篇文章:http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/ 從很久以前開始......我想獲得最好的緩存引擎,以便我的應用程序非常快.當然,我不想過度緩存,但我想至少選擇最好的東西.在那篇文章中它說 Memcached 很慢而 apc 很快,那么為什么每個人都選擇 memcached?>

http://framework.zend.com/manual/en/zend.cache.backends.html#zend.cache.backends.twolevels 這里說的是使用一個快速的(但有限制的)像 Apc、Memcache ......像File,Sqlite……"你覺得用Apc做快,Memcache做慢是個好主意嗎?

解決方案

Memcached 是分布式緩存系統,而 APC 是非分布式的——主要是操作碼緩存.

如果(且僅當)您的 Web 應用程序必須運行在不同的 Web 服務器上(負載平衡),則必須使用 memcache 進行分布式緩存.如果沒有,請堅持使用 APC 及其緩存.

您應該始終使用操作碼緩存,即 APC(APC 也會集成到 php6 iirc 中,所以為什么不現在開始使用它).

您可以/應該將兩者用于不同的目的.

I read this article: http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/ from way back when.. I want to get the best caching engine available so that my application is really fast. Of course I don't want to over-cache but I want to at least choose the best thing out there. In that article it says Memcached is slow and apc is fast so why is everyone choosing memcached?

http://framework.zend.com/manual/en/zend.cache.backends.html#zend.cache.backends.twolevels here is says "use a fast one (but limited) like Apc, Memcache... and a "slow" one like File, Sqlite..." do you think using Apc as the fast and Memcache as the slow is a good idea?

解決方案

Memcached is a distributed caching system, whereas APC is non-distributed - and mainly an opcode cache.

If (and only if) you have a web application which has to live on different webservers (loadbalancing), you have to use memcache for distributed caching. If not, just stick to APC and its cache.

You should always use an opcode cache, which APC is (also APC will get integrated into php6 iirc, so why not start using it now).

You can/should use both for different purposes.

這篇關于Memcached 與 APC 我應該選擇哪一個?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 人妖一区 | 四虎最新地址 | av喷水| 综合久久综合久久 | 国产精品一区二区久久久久 | 在线视频中文字幕 | 日韩精品在线免费观看 | 红色av社区 | 亚洲人的av| 99久久久久国产精品免费 | 亚洲视频在线一区 | 日韩一区二区三区四区五区六区 | 91久久精品国产 | 毛片.com | 欧美性网站 | 毛片.com| 欧美成人a∨高清免费观看 老司机午夜性大片 | 精品国产91乱码一区二区三区 | 天天拍天天操 | 精品一二三区 | 久久久久国产一级毛片 | 日韩国产欧美一区 | 亚洲精品欧美 | 粉嫩一区二区三区国产精品 | 一级做a爰片久久毛片免费看 | 国产女人与拘做受免费视频 | 亚洲乱码国产乱码精品精的特点 | 精品欧美一区二区在线观看视频 | 久草综合在线视频 | 欧美一区二区三区四区五区无卡码 | 国产高清性xxxxxxxx | 国产精品视频偷伦精品视频 | 一区二区三区中文字幕 | 久久久久资源 | 国产高清在线精品一区二区三区 | 国产精品国产三级国产aⅴ原创 | 日韩欧美一区二区三区在线播放 | 国产成人精品久久 | 日韩一区二区三区视频 | 国产成人精品午夜 | 日韩精品一区二区三区在线观看 |