From 1ab7a6f8194d3378218ae5c29787816a1d201c48 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin <5278175+alies-dev@users.noreply.github.com> Date: Mon, 18 Nov 2024 14:37:46 +0400 Subject: [PATCH] Add PHPDoc for ResponseCache Facade --- src/Facades/ResponseCache.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Facades/ResponseCache.php b/src/Facades/ResponseCache.php index 3744081..d4d6342 100644 --- a/src/Facades/ResponseCache.php +++ b/src/Facades/ResponseCache.php @@ -6,6 +6,14 @@ /** * @method static void clear(array $tags = []) + * @method static void forget(string|array $key) + * @method static bool enabled(\Illuminate\Http\Request $request) + * @method static bool shouldCache(\Illuminate\Http\Request $request, \Symfony\Component\HttpFoundation\Response $response) + * @method static bool shouldBypass(\Illuminate\Http\Request $request) + * @method static \Symfony\Component\HttpFoundation\Response cacheResponse(\Illuminate\Http\Request $request, \Symfony\Component\HttpFoundation\Response $response, ?int $lifetimeInSeconds = null, array $tags = []) + * @method static bool hasBeenCached(\Illuminate\Http\Request $request, array $tags = []) + * @method static \Symfony\Component\HttpFoundation\Response getCachedResponseFor(\Illuminate\Http\Request $request, array $tags = []) + * @method static Spatie\ResponseCache\CacheItemSelector\CacheItemSelector selectCachedItems() */ class ResponseCache extends Facade {