简体   繁体   中英

How to configure memcached properly?

I have configured memcached on linux. In core.php I coded like this

    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,));`

But it says Warning: Cache not configured properly. Please check Cache::config(); in APP/config/core.php Warning: Cache not configured properly. Please check Cache::config(); in APP/config/core.php

您不能将两个缓存配置都命名为相同的名称。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM