@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param int|string $ttl |
87 | 87 | * @return bool |
88 | 88 | */ |
89 | - public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600) |
|
89 | + public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600) |
|
90 | 90 | { |
91 | 91 | return $this->mutator->add($cacheKey, $cacheData, $namespace, $ttl); |
92 | 92 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @param string|int $ttl |
183 | 183 | * @return CacheDataFormatter|mixed |
184 | 184 | */ |
185 | - public function getCache(string $cacheKey, string $namespace = '', string|int $ttl = 3600) |
|
185 | + public function getCache(string $cacheKey, string $namespace = '', string | int $ttl = 3600) |
|
186 | 186 | { |
187 | 187 | return $this->retriever->getCache($cacheKey, $namespace, $ttl); |
188 | 188 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @param string|int $ttl |
196 | 196 | * @return CacheDataFormatter|mixed |
197 | 197 | */ |
198 | - public function getMany(array $cacheKeys, string $namespace = '', string|int $ttl = 3600) |
|
198 | + public function getMany(array $cacheKeys, string $namespace = '', string | int $ttl = 3600) |
|
199 | 199 | { |
200 | 200 | return $this->retriever->getMany($cacheKeys, $namespace, $ttl); |
201 | 201 | } |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * @param string|int $ttl |
245 | 245 | * @return void |
246 | 246 | */ |
247 | - public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', string|int $ttl = 3600): void |
|
247 | + public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', string | int $ttl = 3600): void |
|
248 | 248 | { |
249 | 249 | $this->mutator->putCache($cacheKey, $cacheData, $namespace, $ttl); |
250 | 250 | } |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * @param string $namespace |
271 | 271 | * @return void |
272 | 272 | */ |
273 | - public function renewCache(string $cacheKey, string|int $ttl = 3600, string $namespace = ''): void |
|
273 | + public function renewCache(string $cacheKey, string | int $ttl = 3600, string $namespace = ''): void |
|
274 | 274 | { |
275 | 275 | $this->mutator->renewCache($cacheKey, $ttl, $namespace); |
276 | 276 | } |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * @param Closure $callback |
284 | 284 | * @return mixed |
285 | 285 | */ |
286 | - public function remember(string $cacheKey, int|string $ttl, Closure $callback) |
|
286 | + public function remember(string $cacheKey, int | string $ttl, Closure $callback) |
|
287 | 287 | { |
288 | 288 | return $this->retriever->remember($cacheKey, $ttl, $callback); |
289 | 289 | } |