Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 390554d

Browse files
[Cache] Fixed not supported Redis eviction policies
1 parent 1bc3ee7 commit 390554d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function doSave(array $values, ?int $lifetime, array $addTagData = [],
9797
if ('noeviction' !== $eviction && 0 !== strpos($eviction, 'volatile-')) {
9898
CacheItem::log($this->logger, sprintf('Redis maxmemory-policy setting "%s" is *not* supported by RedisTagAwareAdapter, use "noeviction" or "volatile-*" eviction policies', $eviction));
9999

100-
return false;
100+
return [];
101101
}
102102

103103
// serialize values

0 commit comments

Comments
 (0)