modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-10-04 14:18:31 +04:00
parent a76f820fa6
commit 41fd351c26
1 changed files with 4 additions and 4 deletions

View File

@ -366,19 +366,19 @@ class ConfigManager implements IConfigManager {
private $cache = []; private $cache = [];
private final function resetCache(): void { private function resetCache(): void {
$this->cache = []; $this->cache = [];
} }
private final function cacheHas(string $pkey, string $profile) { private function cacheHas(string $pkey, string $profile) {
$ckey = "$profile.$pkey"; $ckey = "$profile.$pkey";
return array_key_exists($ckey, $this->cache); return array_key_exists($ckey, $this->cache);
} }
private final function cacheGet(string $pkey, string $profile) { private function cacheGet(string $pkey, string $profile) {
$ckey = "$profile.$pkey"; $ckey = "$profile.$pkey";
return A::get($this->cache, $ckey); return A::get($this->cache, $ckey);
} }
private final function cacheSet(string $pkey, $value, string $profile): void { private function cacheSet(string $pkey, $value, string $profile): void {
$ckey = "$profile.$pkey"; $ckey = "$profile.$pkey";
$this->cache[$ckey] = $value; $this->cache[$ckey] = $value;
} }