@@ -334,7 +334,7 @@ |
||
| 334 | 334 | * |
| 335 | 335 | * @param string $id The id of the cache entry to fetch. |
| 336 | 336 | * |
| 337 | - * @return mixed|false The cached data or FALSE, if no cache entry exists for the given id. |
|
| 337 | + * @return string The cached data or FALSE, if no cache entry exists for the given id. |
|
| 338 | 338 | */ |
| 339 | 339 | abstract protected function doFetch($id); |
| 340 | 340 | |
@@ -227,9 +227,9 @@ |
||
| 227 | 227 | |
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | - * @param $prefix |
|
| 231 | - * @return array |
|
| 232 | - */ |
|
| 230 | + * @param $prefix |
|
| 231 | + * @return array |
|
| 232 | + */ |
|
| 233 | 233 | public function deleteByPrefix($prefix) |
| 234 | 234 | { |
| 235 | 235 | $prefix = $this->getNamespacedIdDelete($prefix); |
@@ -78,12 +78,12 @@ |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | |
| 81 | - /** |
|
| 82 | - * Deletes all cache entries beginning with the given string. |
|
| 83 | - * |
|
| 84 | - * @param string $prefix |
|
| 85 | - * @return array An array of deleted cache ids |
|
| 86 | - */ |
|
| 81 | + /** |
|
| 82 | + * Deletes all cache entries beginning with the given string. |
|
| 83 | + * |
|
| 84 | + * @param string $prefix |
|
| 85 | + * @return array An array of deleted cache ids |
|
| 86 | + */ |
|
| 87 | 87 | public function deleteByPrefix($prefix) |
| 88 | 88 | { |
| 89 | 89 | $deleted = array (); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | // No lifetime, use MSET |
| 73 | - $response = $this->client->mset(array_map(function ($value) { |
|
| 73 | + $response = $this->client->mset(array_map(function($value) { |
|
| 74 | 74 | return serialize($value); |
| 75 | 75 | }, $keysAndValues)); |
| 76 | 76 | |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function deleteByPrefix($prefix) |
| 88 | 88 | { |
| 89 | - $deleted = array (); |
|
| 89 | + $deleted = array(); |
|
| 90 | 90 | $deleted = $this->getIds($prefix); |
| 91 | 91 | if ($deleted) { |
| 92 | - foreach ( $deleted as $id ) { |
|
| 92 | + foreach ($deleted as $id) { |
|
| 93 | 93 | $this->doDelete($id); |
| 94 | 94 | } |
| 95 | 95 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | { |
| 109 | 109 | if ($prefix) { |
| 110 | 110 | return $this->client |
| 111 | - ->keys('\[' . $prefix . '*'); |
|
| 111 | + ->keys('\['.$prefix.'*'); |
|
| 112 | 112 | } else { |
| 113 | 113 | return $this->client |
| 114 | 114 | ->keys('*'); |