| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class UserNotFoundCache |
||
| 10 | { |
||
| 11 | private const PREFIX = 'not_found_'; |
||
| 12 | private const TTL = 86400; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $usernameOrUuid |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public static function has(string $usernameOrUuid) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param $usernameOrUuid |
||
| 26 | * |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public static function add($usernameOrUuid) |
||
| 34 |