Skip to content

Commit 8838500

Browse files
committed
TASK: Update to Neos 8, remove optimizedrediscachebackend
1 parent c57cc47 commit 8838500

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

Classes/NodeRendering/Infrastructure/RedisContentCacheReader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Neos\Flow\Annotations as Flow;
1111
use Flowpack\DecoupledContentStore\Core\Infrastructure\RedisClientManager;
1212
use Neos\Fusion\Core\Cache\ContentCache;
13-
use Sandstorm\OptimizedRedisCacheBackend\OptimizedRedisCacheBackend;
13+
use Neos\Cache\Backend\RedisBackend;
1414

1515
/**
1616
* @Flow\Scope("singleton")
@@ -49,8 +49,8 @@ public function tryToExtractRenderingForEnumeratedNodeFromContentCache(DocumentN
4949

5050
$redis = null;
5151
$backend = $this->contentCache->getBackend();
52-
if ($backend instanceof OptimizedRedisCacheBackend) {
53-
$reflProp = new \ReflectionProperty(OptimizedRedisCacheBackend::class, 'redis');
52+
if ($backend instanceof RedisBackend) {
53+
$reflProp = new \ReflectionProperty(RedisBackend::class, 'redis');
5454
$reflProp->setAccessible(true);
5555
$redis = $reflProp->getValue($backend);
5656
} else {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Neos_Fusion_Content:
22
frontend: Neos\Cache\Frontend\StringFrontend
3-
backend: Sandstorm\OptimizedRedisCacheBackend\OptimizedRedisCacheBackend
3+
backend: Neos\Cache\Backend\RedisBackend

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
"type": "neos-package",
44
"name": "flowpack/decoupledcontentstore",
55
"require": {
6-
"php": "^7.1 || ^8.0",
7-
"neos/neos": "^7.0",
8-
"albertofem/rsync-lib": "~1.0",
9-
"sandstorm/optimizedrediscachebackend": "^1.1.4",
10-
"flowpack/prunner": "^0.2"
6+
"php": "^8.0",
7+
"neos/neos": "^8.0",
8+
"albertofem/rsync-lib": "~1.0"
119
},
1210
"autoload": {
1311
"psr-4": {

0 commit comments

Comments
 (0)