@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $client = \strtolower($client ?: \getenv(self::CACHE_CLIENT) ?: 'memory'); |
45 | 45 | $config = $this->factory->build($client); |
46 | 46 | |
47 | - return match ($client) { |
|
47 | + return match($client) { |
|
48 | 48 | 'memory' => new MemoryClient($config->get('ttl')), |
49 | 49 | 'memcached' => $this->createMemcachedClient($config), |
50 | 50 | 'redis' => $this->createRedisClient($config), |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | }; |
56 | 56 | } |
57 | 57 | |
58 | - private function createMemcachedClient(MemcachedConfiguration|Configuration $conf): Cache |
|
58 | + private function createMemcachedClient(MemcachedConfiguration | Configuration $conf): Cache |
|
59 | 59 | { |
60 | 60 | $client = new \Memcached($conf->get('id')); |
61 | 61 | $client->setOptions($conf->getOptions()); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return new MemcachedClient($client, $conf->getTtl()); |
66 | 66 | } |
67 | 67 | |
68 | - private function createRedisClient(RedisConfiguration|Configuration $conf): Cache |
|
68 | + private function createRedisClient(RedisConfiguration | Configuration $conf): Cache |
|
69 | 69 | { |
70 | 70 | $serializer = $conf->get('serializer'); |
71 | 71 | $binary = $conf->get('binary'); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ); |
85 | 85 | } |
86 | 86 | |
87 | - private function createPredisClient(PredisConfiguration|Configuration $conf): Cache |
|
87 | + private function createPredisClient(PredisConfiguration | Configuration $conf): Cache |
|
88 | 88 | { |
89 | 89 | $binary = $conf->get('binary'); |
90 | 90 | if (Serializer::JSON === $conf->get('serializer') && $binary) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | parent::__construct($values); |
34 | 34 | |
35 | - $this->type = match ($values['serializer']) { |
|
35 | + $this->type = match($values['serializer']) { |
|
36 | 36 | Serializer::PHP => \Redis::SERIALIZER_PHP, |
37 | 37 | Serializer::IGBINARY => \Redis::SERIALIZER_IGBINARY, |
38 | 38 | default => \Redis::SERIALIZER_NONE, |