@@ -35,11 +35,11 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function save($key, CacheEntry $data) |
| 37 | 37 | { |
| 38 | - $ttl = $data->getTTL(); |
|
| 39 | - if ($ttl === 0) { |
|
| 38 | + $ttl = $data->getTTL(); |
|
| 39 | + if ($ttl === 0) { |
|
| 40 | 40 | return $this->cache->set($key, $data); |
| 41 | - } |
|
| 42 | - return $this->cache->set($key, $data, $data->getTTL()); |
|
| 41 | + } |
|
| 42 | + return $this->cache->set($key, $data, $data->getTTL()); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |