From d323f2fc4ba8bb1cd77cacbd01522109649c2b79 Mon Sep 17 00:00:00 2001 From: Rasel Islam Rafi <31556372+rtraselbd@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:20:35 +0600 Subject: [PATCH] Add support for tags in store() method --- src/CacheManager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CacheManager.php b/src/CacheManager.php index 88428353..cb734776 100644 --- a/src/CacheManager.php +++ b/src/CacheManager.php @@ -32,6 +32,10 @@ class CacheManager extends BaseCacheManager return $this->store()->tags(array_merge($tags, $names)); } - return $this->store()->tags($tags)->$method(...$parameters); + if ($this->store()->supportsTags()) { + return $this->store()->tags($tags)->$method(...$parameters); + } + + return $this->store()->$method(...$parameters); } }