@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 64 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 65 | 65 | { |
| 66 | 66 | verify_key($key); |
| 67 | 67 | if (1 > $expiration = $this->timestampWithGlobalTtl($ttl, Cache::DATE_FAR_FAR_AWAY)) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | return Memcached::RES_SUCCESS === $this->client->getResultCode() ? $value : $default; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 40 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 41 | 41 | { |
| 42 | 42 | verify_key($key); |
| 43 | 43 | $expiration = $this->secondsWithGlobalTtl($ttl); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | : $default; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 41 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 42 | 42 | { |
| 43 | 43 | verify_key($key); |
| 44 | 44 | $expiration = $this->secondsWithGlobalTtl($ttl); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | return $this->internalMultiGet($filtered, $default); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null): bool |
|
| 30 | + public function setMultiple(iterable $values, null | int | \DateInterval $ttl = null): bool |
|
| 31 | 31 | { |
| 32 | 32 | $filtered = filter_keys($values, true); |
| 33 | 33 | $ttl = normalize_ttl($ttl ?? $this->ttl); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | return unserialize(shmop_read($resource, 0, shmop_size($resource))); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 64 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 65 | 65 | { |
| 66 | 66 | verify_key($key); |
| 67 | 67 | if (1 > $expiration = $this->timestampWithGlobalTtl($ttl, Cache::DATE_FAR_FAR_AWAY)) { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | }; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - private function createMemcachedClient(MemcachedConfiguration|Configuration $conf): Cache |
|
| 60 | + private function createMemcachedClient(MemcachedConfiguration | Configuration $conf): Cache |
|
| 61 | 61 | { |
| 62 | 62 | $client = new Memcached($conf->get('id')); |
| 63 | 63 | $client->setOptions($conf->getOptions()); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | return new MemcachedClient($client, $conf->getTtl()); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - private function createRedisClient(RedisConfiguration|Configuration $conf): Cache |
|
| 70 | + private function createRedisClient(RedisConfiguration | Configuration $conf): Cache |
|
| 71 | 71 | { |
| 72 | 72 | $serializer = $conf->get('serializer'); |
| 73 | 73 | $binary = $conf->get('binary'); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - private function createPredisClient(PredisConfiguration|Configuration $conf): Cache |
|
| 89 | + private function createPredisClient(PredisConfiguration | Configuration $conf): Cache |
|
| 90 | 90 | { |
| 91 | 91 | $binary = $conf->get('binary'); |
| 92 | 92 | if (Serializer::JSON === $conf->get('serializer') && $binary) { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | return $this->has($key) ? $this->storage[$key] : $default; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 38 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 39 | 39 | { |
| 40 | 40 | verify_key($key); |
| 41 | 41 | if (1 > $expiration = $this->timestampWithGlobalTtl($ttl, Cache::DATE_FAR_FAR_AWAY)) { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | : $default; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 41 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 42 | 42 | { |
| 43 | 43 | verify_key($key); |
| 44 | 44 | $expiration = $this->secondsWithGlobalTtl($ttl); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | : $default; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
| 41 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
| 42 | 42 | { |
| 43 | 43 | verify_key($key); |
| 44 | 44 | $expiration = $this->secondsWithGlobalTtl($ttl); |