@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param int|string $ttl |
37 | 37 | * @return bool |
38 | 38 | */ |
39 | - public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600) |
|
39 | + public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600) |
|
40 | 40 | { |
41 | 41 | if (!empty($this->cacheer->getCache($cacheKey, $namespace))) { |
42 | 42 | return true; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @param int|string $ttl |
141 | 141 | * @return void |
142 | 142 | */ |
143 | - public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600) |
|
143 | + public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600) |
|
144 | 144 | { |
145 | 145 | $data = CacheerHelper::prepareForStorage($cacheData, $this->cacheer->isCompressionEnabled(), $this->cacheer->getEncryptionKey()); |
146 | 146 | $this->cacheer->cacheStore->putCache($cacheKey, $data, $namespace, $ttl); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * @param string $namespace |
169 | 169 | * @return void |
170 | 170 | */ |
171 | - public function renewCache(string $cacheKey, int|string $ttl = 3600, string $namespace = '') |
|
171 | + public function renewCache(string $cacheKey, int | string $ttl = 3600, string $namespace = '') |
|
172 | 172 | { |
173 | 173 | $this->cacheer->cacheStore->renewCache($cacheKey, $ttl, $namespace); |
174 | 174 | $this->cacheer->syncState(); |