| Total Complexity | 3 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 7 | class UserNotFoundCache  | 
            ||
| 8 | { | 
            ||
| 9 | private const PREFIX = 'not_found_';  | 
            ||
| 10 | private const TTL = 86400;  | 
            ||
| 11 | |||
| 12 | public static function has(string $usernameOrUuid): bool  | 
            ||
| 13 |     { | 
            ||
| 14 |         if (\Cache::has(self::PREFIX.md5($usernameOrUuid))) { | 
            ||
| 15 |             \Log::debug('User not found cache hit: '.$usernameOrUuid); | 
            ||
| 16 | |||
| 17 | return true;  | 
            ||
| 18 | }  | 
            ||
| 19 | |||
| 20 | return false;  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | public static function add(string $usernameOrUuid): bool  | 
            ||
| 26 | }  | 
            ||
| 27 | }  | 
            ||
| 28 |