要知道,要讓此擴充功能正常運作,您需要一台安裝了「Memcached」(一項獨立於 PHP 的服務)並以服務形式執行的伺服器。
此處的說明文件多次提及「memcache_host」。這不是任意字串,而應該是執行 memcached 的伺服器的主機名稱(例如 localhost)或 IP 位址。
如果您剛安裝 php memcache 擴充功能,則不一定也安裝了 memcached(PECL memcache >= 0.2.0)
表示與一組 memcache 伺服器的連線。
$host,$port = 11211,$persistent = ?,$weight = ?,$timeout = ?,$retry_interval = ?,$status = ?,$failure_callback = ?,$timeoutms = ?$type = ?, 整數 (int) $slabid = ?, 整數 (int) $limit = 100): 陣列 (array)$host,$port = 11211,$timeout = ?,$retry_interval = false,$status = ?,$failure_callback = ?要知道,要讓此擴充功能正常運作,您需要一台安裝了「Memcached」(一項獨立於 PHP 的服務)並以服務形式執行的伺服器。
此處的說明文件多次提及「memcache_host」。這不是任意字串,而應該是執行 memcached 的伺服器的主機名稱(例如 localhost)或 IP 位址。
如果您剛安裝 php memcache 擴充功能,則不一定也安裝了 memcached