File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
lib/internal/Magento/Framework/Cache/Backend
setup/src/Magento/Setup/Model/ConfigOptionsList Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ class RemoteSynchronizedCache extends \Zend_Cache_Backend implements \Zend_Cache
51
51
*/
52
52
private const REMOTE_SYNC_LOCK_PREFIX = 'rsl:: ' ;
53
53
54
-
55
54
/**
56
55
* @inheritdoc
57
56
*/
@@ -398,10 +397,10 @@ private function unlock(string $id): bool
398
397
/**
399
398
* Calculate lock name.
400
399
*
401
- * @param $id
400
+ * @param string $id
402
401
* @return string
403
402
*/
404
- private function getLockName ($ id ): string
403
+ private function getLockName (string $ id ): string
405
404
{
406
405
return self ::REMOTE_SYNC_LOCK_PREFIX . $ id ;
407
406
}
@@ -451,6 +450,9 @@ private function generateLockSign()
451
450
return $ sign ;
452
451
}
453
452
453
+ /**
454
+ * Function that notifies configured cache types to be switched off.
455
+ */
454
456
private function notifyStaleCache (): void
455
457
{
456
458
$ this ->notifier = $ this ->notifier ??
Original file line number Diff line number Diff line change 22
22
class Cache implements ConfigOptionsListInterface
23
23
{
24
24
const INPUT_VALUE_CACHE_REDIS = 'redis ' ;
25
- const CONFIG_VALUE_CACHE_REDIS = '\\ Magento \\ Framework \\ Cache \\ Backend\Redis ' ;
25
+ const CONFIG_VALUE_CACHE_REDIS = \ Magento \Framework \Cache \Backend \Redis::class ;
26
26
27
27
const INPUT_KEY_CACHE_BACKEND = 'cache-backend ' ;
28
28
const INPUT_KEY_CACHE_BACKEND_REDIS_SERVER = 'cache-backend-redis-server ' ;
@@ -44,7 +44,6 @@ class Cache implements ConfigOptionsListInterface
44
44
const CONFIG_PATH_CACHE_ID_PREFIX = 'cache/frontend/default/id_prefix ' ;
45
45
const CONFIG_PATH_ALLOW_PARALLEL_CACHE_GENERATION = 'cache/allow_parallel_generation ' ;
46
46
47
-
48
47
/**
49
48
* @var array
50
49
*/
@@ -98,6 +97,7 @@ public function __construct(RedisConnectionValidator $redisValidator)
98
97
*/
99
98
public function getOptions ()
100
99
{
100
+ $ a = \Magento \Framework \Cache \Backend \Redis::class;
101
101
return [
102
102
new SelectConfigOption (
103
103
self ::INPUT_KEY_CACHE_BACKEND ,
Original file line number Diff line number Diff line change 20
20
class PageCache implements ConfigOptionsListInterface
21
21
{
22
22
const INPUT_VALUE_PAGE_CACHE_REDIS = 'redis ' ;
23
- const CONFIG_VALUE_PAGE_CACHE_REDIS = '\\ Magento \\ Framework \\ Cache \\ Backend\Redis ' ;
23
+ const CONFIG_VALUE_PAGE_CACHE_REDIS = \ Magento \Framework \Cache \Backend \Redis::class ;
24
24
25
25
const INPUT_KEY_PAGE_CACHE_BACKEND = 'page-cache ' ;
26
26
const INPUT_KEY_PAGE_CACHE_BACKEND_REDIS_SERVER = 'page-cache-redis-server ' ;
You can’t perform that action at this time.
0 commit comments