function getUserNoPassThreadsByFidAndUidAndIfCheck($fid, $uid, $ifCheck, $num = 5) {
if(!Perf::checkMemcache()) {
$threadsService = L::loadClass('Threads', 'forum'); /* @var $threadsService PW_Threads */
return $threadsService->getUserThreadsByFidAndUidAndIfCheckNoCache($fid, $uid, $ifCheck, $num);
}
$key = $this->_getKeyForUserNoPassThreads($fid, $uid);
$result = $this->_cacheService->get($key);
if ($result === false) {
$threadsService = L::loadClass('Threads', 'forum'); /* @var $threadsService PW_Threads */
$result = $threadsService->getUserThreadsByFidAndUidAndIfCheckNoCache($fid, $uid, $ifCheck, $num);
$this->_cacheService->set($key, $result);
}
return $result;
}memcache 读取数据缓存设置
获取用户帖子缓存策略
最新推荐文章于 2021-03-10 00:22:39 发布
120

被折叠的 条评论
为什么被折叠?



