@@ -272,7 +272,8 @@ |
||
| 272 | 272 | { |
| 273 | 273 | return Promise::doReject(new WriteException('Cache object is not open.')); |
| 274 | 274 | } |
| 275 | - if ($ttl <= 0) { |
|
| 275 | + if ($ttl <= 0) |
|
| 276 | + { |
|
| 276 | 277 | return Promise::doReject(new WriteException('TTL needs to be higher than 0.')); |
| 277 | 278 | } |
| 278 | 279 | if (!array_key_exists($key, $this->storage)) |