feat : kitchen
This commit is contained in:
@@ -97,17 +97,17 @@ class SiteCache
|
||||
|
||||
/**
|
||||
* @param int $siteId
|
||||
* @return array|false|\Redis|null
|
||||
* @return array|false|\Redis
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getSiteInfo(int $siteId): false|array|\Redis|null
|
||||
public function getSiteInfo(int $siteId): false|array|\Redis
|
||||
{
|
||||
$siteKey = CommonRedisKey::siteInfoKey($siteId);
|
||||
|
||||
if (!$this->redis->exists($siteKey,RedisCode::SYSTEM_DB)) $this->setSiteInfo($siteId);
|
||||
|
||||
return $this->redis->hGetAll($siteKey,RedisCode::SYSTEM_DB) ?? null;
|
||||
return $this->redis->hGetAll($siteKey,RedisCode::SYSTEM_DB) ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user