@@ -108,13 +108,13 @@ discard block |
||
108 | 108 | public function set($key, $data, $ttl = 0) { |
109 | 109 | $expire = time() + $ttl; |
110 | 110 | $this->logger->debug('Setting cache data for key [' . $key . '], ' |
111 | - . 'time to live [' . $ttl . '], ' |
|
112 | - . 'expire at [' . date('Y-m-d H:i:s', $expire) . ']'); |
|
111 | + . 'time to live [' . $ttl . '], ' |
|
112 | + . 'expire at [' . date('Y-m-d H:i:s', $expire) . ']'); |
|
113 | 113 | $filePath = $this->getFilePath($key); |
114 | 114 | $handle = fopen($filePath, 'w'); |
115 | 115 | if (!is_resource($handle)) { |
116 | 116 | $this->logger->error('Can not open the file cache ' |
117 | - . '[' . $filePath . '] for the key [' . $key . '], return false'); |
|
117 | + . '[' . $filePath . '] for the key [' . $key . '], return false'); |
|
118 | 118 | return false; |
119 | 119 | } |
120 | 120 | flock($handle, LOCK_EX); // exclusive lock, will get released when the file is closed |
@@ -191,10 +191,10 @@ discard block |
||
191 | 191 | if ($data['expire'] > time()) { |
192 | 192 | $this->logger->info('This cache not yet expired return cache informations'); |
193 | 193 | return array( |
194 | - 'mtime' => $data['mtime'], |
|
195 | - 'expire' => $data['expire'], |
|
196 | - 'ttl' => $data['ttl'] |
|
197 | - ); |
|
194 | + 'mtime' => $data['mtime'], |
|
195 | + 'expire' => $data['expire'], |
|
196 | + 'ttl' => $data['ttl'] |
|
197 | + ); |
|
198 | 198 | } |
199 | 199 | $this->logger->info('This cache already expired return false'); |
200 | 200 | return false; |