2013-02-04 137 views
0

我在Linux上配置了memcached。在core.php我编写这样如何正确配置memcached?

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

回答

0

你不能同时调用缓存的配置相同的名称。