简体   繁体   English

如何正确配置memcached?

[英]How to configure memcached properly?

I have configured memcached on linux. 我已经在Linux上配置了memcached。 In core.php I coded like this 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,));`

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 Warning: Cache not configured properly. Please check Cache::config(); in APP/config/core.php

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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