Revision 072cf5392229343ebc172405ea0628c2d0d14f17

Committed on 08/07/2020 3:14 am by André R <ar@ez.no> [GitHub Diff]

Update tag cache adapters from Symfony 4.4 upstream to fix exception on wrong Redis Config

Other changes from source:
```
commit c8c7d4c4588d46590ba96602e840a7688ca4171f
Author: Nicolas Grekas <nicolas.grekas@gmail.com>
Date: Sat May 23 15:02:18 2020 +0200

[Cache] $lifetime cannot be null

commit f8d3b0626a8e1edd5c9f0bab2de3408860f93126
Merge: cd66cd57a0 3d6e942da5
Author: Nicolas Grekas <nicolas.grekas@gmail.com>
Date: Thu Apr 30 19:47:27 2020 +0200

bug #36606 [Cache] Fixed not supported Redis eviction policies (SerheyDolgushev)

This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Fixed not supported Redis eviction policies

| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | no
| License | MIT
| Doc PR | no

**Steps to reproduce:**
1. Define the following redis service on SymfonyCloud:
```
rediscache:
type: redis:5.0
size: S
configuration:
maxmemory_policy: allkeys-lru
```
2. Deploy the change

**Expected result:**
No redis cache will be populated

**Actual result:**
Following exception is thrown:
```
[2020-04-28T05:35:58.440403-04:00] php.CRITICAL: Uncaught Error: Return value of Symfony\Component\Cache\Adapter\RedisTagAwareAdapter::doSave() must be of the type array, bool returned {"exception":"[object] (TypeError(code: 0): Return value of Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter::doSave() must be of the type array, bool returned at /app/vendor/symfony/cache/Adapter/RedisTagAwareAdapter.php:100)"} []
```

Commits
-------

3d6e942da5 [Cache] Fixed not supported Redis eviction policies

commit 95becc4078e7c5764487cfc4ab04a011bc76269e
Merge: e0e3cf634e d082eca7dd
Author: Nicolas Grekas <nicolas.grekas@gmail.com>
Date: Sun Apr 19 21:54:45 2020 +0200

bug #36457 [Cache] CacheItem with tag is never a hit after expired (alexander-schranz, nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] CacheItem with tag is never a hit after expired

| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes/no
| New feature? | no
| Deprecations? | no
| Tickets | Fix #36458
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->

It seems like a tag cacheItem is never a hit again. Not sure how fix this but the cache component is really hard to debug ???? .

It need to be somewhere generally as all TagAware caches are effected:

```
1) Symfony\Component\Cache\Tests\Adapter\FilesystemTagAwareAdapterTest::testRefreshAfterExpires

Failed asserting that false is true.

/home/travis/build/symfony/symfony/src/Symfony/Component/Cache/Tests/Traits/TagAwareTestTrait.php:194

2) Symfony\Component\Cache\Tests\Adapter\PredisTagAwareClusterAdapterTest::testRefreshAfterExpires

Failed asserting that true is false.

/home/travis/build/symfony/symfony/src/Symfony/Component/Cache/Tests/Traits/TagAwareTestTrait.php:183

3) Symfony\Component\Cache\Tests\Adapter\RedisTagAwareAdapterTest::testRefreshAfterExpires

Failed asserting that true is false.

/home/travis/build/symfony/symfony/src/Symfony/Component/Cache/Tests/Traits/TagAwareTestTrait.php:183

4) Symfony\Component\Cache\Tests\Adapter\RedisTagAwareClusterAdapterTest::testRefreshAfterExpires

Failed asserting that true is false.

/home/travis/build/symfony/symfony/src/Symfony/Component/Cache/Tests/Traits/TagAwareTestTrait.php:183
```

Commits
-------

d082eca7dd Add reproducer to for hit after update expire cacheItem
f815b011c3 [Cache] fix FilesystemTagAwareAdapter failing when a tag link preexists

commit 14f2d22158508cae2801e0f1f654ed1579ca02c0
Merge: 8848de5a6f 13ea421e1c
Author: Fabien Potencier <fabien@potencier.org>
Date: Sun Mar 15 11:05:03 2020 +0100

Merge branch '3.4' into 4.4

* 3.4:
Add missing dots at the end of exception messages
```