在yii2
我需要使用內存緩存插件我已經安裝了,這也將顯示在的phpinfo但在運行項目時,我得到了以下錯誤:使用PHP的memcache在yii2
無效的配置 - 警予\基地\ InvalidConfigException - MemCache需要加載PHP memcache擴展。
緩存配置
'cache' => [
'class' => 'yii\caching\MemCache',
'servers' => [
[
'host' => '127.0.0.1',
'port' => 11211,
'weight' => 60,
],
],
]
顯示您的緩存配置。 – Bizley
'緩存'=> [ '類'=> 'YII \緩存\ MEMCACHE', '服務器'=> [ [ '主機'=> '127.0.0.1', '端口'=> 11211, 'weight'=> 60, ], ], ], –
您使用的是Memcache還是Memcached? – smoqadam