@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public static function serialize(mixed $data, bool $serialize = true): mixed |
24 | 24 | { |
25 | - if($serialize) { |
|
25 | + if ($serialize) { |
|
26 | 26 | return serialize($data); |
27 | 27 | } |
28 | 28 |
@@ -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): bool |
|
39 | + public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600): bool |
|
40 | 40 | { |
41 | 41 | if (!empty($this->cacheer->getCache($cacheKey, $namespace))) { |
42 | 42 | return true; |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * @param int|string $ttl |
151 | 151 | * @return bool |
152 | 152 | */ |
153 | - public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600): bool |
|
153 | + public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600): bool |
|
154 | 154 | { |
155 | 155 | $data = CacheerHelper::prepareForStorage($cacheData, $this->cacheer->isCompressionEnabled(), $this->cacheer->getEncryptionKey()); |
156 | 156 | $this->cacheer->cacheStore->putCache($cacheKey, $data, $namespace, $ttl); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @param string $namespace |
184 | 184 | * @return bool |
185 | 185 | */ |
186 | - public function renewCache(string $cacheKey, int|string $ttl = 3600, string $namespace = ''): bool |
|
186 | + public function renewCache(string $cacheKey, int | string $ttl = 3600, string $namespace = ''): bool |
|
187 | 187 | { |
188 | 188 | $this->cacheer->cacheStore->renewCache($cacheKey, $ttl, $namespace); |
189 | 189 | $this->cacheer->syncState(); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | /** |
91 | 91 | * @var FileCacheStore|DatabaseCacheStore|RedisCacheStore|ArrayCacheStore |
92 | 92 | */ |
93 | - public RedisCacheStore|DatabaseCacheStore|ArrayCacheStore|FileCacheStore $cacheStore; |
|
93 | + public RedisCacheStore | DatabaseCacheStore | ArrayCacheStore | FileCacheStore $cacheStore; |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * @var array |