SAE SAE的memcache初始化失败!

#1 lainel

SAE的memcache初始化失败!
这是在 model层里面写的。直接是$this
代码:$res=$this->spCache(3600*24)->findAll($conditions);

出错信息:
74.  /**
75.   * access_driver_saememcache  SAE的memcache缓存驱动类
76.   */
77.  class access_driver_saememcache{
78.      public $mmc = null;
79.      public function __construct(){if( ! $this->mmc = memcache_init() )spError("SAE的memcache初始化失败!");}
80.      public function get($name){return memcache_get($this->mmc, $name);}
81.      public function set($name, $value, $life_time){return memcache_set($this->mmc, $name, $value, 0, $life_time);}
82.      public function del($name){return memcache_delete($this->mmc, $name);}
83.  }
84.

该贴已经同步到 lainel的微博

2011-07-30 23:33:12

#2 jake

"SAE的memcache初始化失败!",检查环境是否SAE环境、使用的框架版本是否SAE版框架。还有SAE环境有没有开启memcache等。

2011-07-31 09:02:14

#3 微博评论

回复@SpeedPHP:哦,我昨天晚上发现我没有开启缓存。呵呵

来自 lainel 的新浪微博

2011-08-01 11:22:21