Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /alidata/www/aggregate/System/Caches/System/setting.cache.php:54 Stack trace: #0 /alidata/www/aggregate/System/Caches/System/setting.cache.php(54): Redis->hGetAll('System:Setting') #1 /alidata/www/aggregate/System/Services/System/setting.service.php(25): System\Caches\System\SettingCache->getBySettings() #2 /alidata/www/aggregate/Admin/Core/Services/controller.php(57): System\Services\System\SettingService->getSettings() #3 /alidata/www/aggregate/Admin/Core/Services/web.controller.php(11): Admin\Core\Services\Controller->__construct(Array) #4 /alidata/www/aggregate/Admin/Sites/Operations/System/Web/Controllers/system.controller.php(16): Admin\Core\Services\WebController->__construct(Array) #5 [internal function]: Admin\Sites\Operations\System\Web\Controllers\SystemController->__construct(Array) #6 /alidata/www/aggregate/Admin/Core/route.php(63): ReflectionClass->newInstance(Array) #7 [internal function]: Admin\Core\Providers\RoutesPr in /alidata/www/aggregate/System/Caches/System/setting.cache.php on line 54
Redis server went away

Error

Redis server went away

/alidata/www/aggregate/System/Caches/System/setting.cache.php(54)

42     */
43    public function setSettings(array $arrData  = [])
44    {
45        return $this->redisObj->hmset($this->getByKeyName(),$arrData);
46    }
47    /**
48     * 获取配置信息
49     *
50     * @return mixed
51     */
52    public function getBySettings()
53    {
54        return $this->redisObj->hgetall($this->getByKeyName());
55    }
56    /**
57     * 删除配置信息
58     * @param string $strKeyName
59     *
60     * @return mixed
61     */
62    public function remove($strKeyName = "")
63    {
64        return $this->redisObj->hdel($this->getByKeyName(),$strKeyName);
65    }
66
            
2017-02-23 19:53:04