Compare commits
	
		
			2 Commits
		
	
	
		
			b469031de1
			...
			c88277a6d6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c88277a6d6 | |||
| 41fd351c26 | 
@ -366,19 +366,19 @@ class ConfigManager implements IConfigManager {
 | 
			
		||||
 | 
			
		||||
  private $cache = [];
 | 
			
		||||
 | 
			
		||||
  private final function resetCache(): void {
 | 
			
		||||
  private function resetCache(): void {
 | 
			
		||||
    $this->cache = [];
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  private final function cacheHas(string $pkey, string $profile) {
 | 
			
		||||
  private function cacheHas(string $pkey, string $profile) {
 | 
			
		||||
    $ckey = "$profile.$pkey";
 | 
			
		||||
    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";
 | 
			
		||||
    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";
 | 
			
		||||
    $this->cache[$ckey] = $value;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user