如何正确配置memcached?

时间:2013-02-04 09:48:10

标签: linux cakephp

我在linux上配置了memcached。在core.php我编码如此

    Cache::config('default',array('engine'=>'Memcache'));
 Cache::config('default', array('engine'=>'Memcache','duration'=> 3600, //[optional]'probability'=> 100, //[optional] 'prefix' => Inflector::slug(APP_DIR) . '_','servers'=>array('127.0.0.1:11211'),'compress'=>false,));`

但它说Warning: Cache not configured properly. Please check Cache::config(); in APP/config/core.php

1 个答案:

答案 0 :(得分:0)

您不能同时使用相同的名称调用两个缓存配置。

相关问题