From 2a11d05e908bb8db8debfec309d9c3a041af8891 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Tue, 28 Apr 2020 10:52:32 +0100 Subject: [PATCH] [Cache] Fixed not supported Redis eviction policies --- src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php b/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php index f382f223f2635..75753be3baf13 100644 --- a/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php @@ -97,7 +97,7 @@ protected function doSave(array $values, int $lifetime, array $addTagData = [], if ('noeviction' !== $eviction && 0 !== strpos($eviction, 'volatile-')) { CacheItem::log($this->logger, sprintf('Redis maxmemory-policy setting "%s" is *not* supported by RedisTagAwareAdapter, use "noeviction" or "volatile-*" eviction policies', $eviction)); - return false; + return []; } // serialize values