| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Component\HttpClient\Caching; |
| 13 | |
| 14 | /** |
| 15 | * @internal |
| 16 | */ |
| 17 | enum Freshness |
| 18 | { |
| 19 | /** |
| 20 | * The cached response is fresh and can be used without revalidation. |
| 21 | */ |
| 22 | case Fresh; |
| 23 | /** |
| 24 | * The cached response is stale and must be revalidated before use. |
| 25 | */ |
| 26 | case MustRevalidate; |
| 27 | /** |
| 28 | * The cached response is stale and should not be used. |
| 29 | */ |
| 30 | case Stale; |
| 31 | /** |
| 32 | * The cached response is stale but may be used as a fallback in case of errors. |
| 33 | */ |
| 34 | case StaleButUsable; |
| 35 | } |