@@ -63,10 +63,10 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | class LocalStorage extends AbstractStorage |
| 65 | 65 | { |
| 66 | - /** |
|
| 67 | - * The directory to use to save cache files |
|
| 68 | - * @var DirectoryInterface |
|
| 69 | - */ |
|
| 66 | + /** |
|
| 67 | + * The directory to use to save cache files |
|
| 68 | + * @var DirectoryInterface |
|
| 69 | + */ |
|
| 70 | 70 | protected DirectoryInterface $directory; |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | /** |
| 129 | 129 | * {@inheritdoc} |
| 130 | 130 | */ |
| 131 | - public function set(string $key, $value, int|DateInterval|null $ttl = null): bool |
|
| 131 | + public function set(string $key, $value, int | DateInterval | null $ttl = null): bool |
|
| 132 | 132 | { |
| 133 | 133 | if ($ttl === null) { |
| 134 | 134 | $ttl = $this->config->get('ttl'); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | /** |
| 123 | 123 | * {@inheritdoc} |
| 124 | 124 | */ |
| 125 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
| 125 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
| 126 | 126 | { |
| 127 | 127 | $this->validateKey($key); |
| 128 | 128 | |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | return false; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
| 77 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
| 78 | 78 | { |
| 79 | 79 | return false; |
| 80 | 80 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * @throws CacheException |
| 82 | 82 | * MUST be thrown if the $key string is not a legal value. |
| 83 | 83 | */ |
| 84 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool; |
|
| 84 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool; |
|
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * Delete an item from the cache by its unique key. |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | /** |
| 88 | 88 | * {@inheritdoc} |
| 89 | 89 | */ |
| 90 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
| 90 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
| 91 | 91 | { |
| 92 | 92 | if ($ttl === null) { |
| 93 | 93 | $ttl = $this->config->get('ttl'); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * |
| 81 | 81 | * @throws CacheException MUST be thrown if the $key string is not a legal value. |
| 82 | 82 | */ |
| 83 | - public function set(string $key, $value, int|DateInterval|null $ttl = null): bool; |
|
| 83 | + public function set(string $key, $value, int | DateInterval | null $ttl = null): bool; |
|
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * Delete an item from the cache by its unique key. |