@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param array $data |
99 | 99 | * @param string $key |
100 | 100 | * |
101 | - * @return boolean |
|
101 | + * @return boolean|null |
|
102 | 102 | */ |
103 | 103 | protected function handleExpiration($data, $key) { |
104 | 104 | if (!isset($data['expiry']) || $data['expiry'] == 0) { |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | * @param string $name cache name |
202 | 202 | * @param mixed $val variable to be stored |
203 | 203 | * @param bool $compressed Compressed storage |
204 | - * @param int|string $expiry Expires in the given seconds (0:never) or the time defined by valid date string (eg. '2014-10-01' or '1week' or '2hours') |
|
205 | - * @param string $storeMethod Storing method (serialize|json) |
|
204 | + * @param integer $expiry Expires in the given seconds (0:never) or the time defined by valid date string (eg. '2014-10-01' or '1week' or '2hours') |
|
205 | + * @param integer $storeMethod Storing method (serialize|json) |
|
206 | 206 | * |
207 | 207 | * @return bool |
208 | 208 | */ |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * @param string $name cache name |
308 | 308 | * @param mixed $default default value |
309 | 309 | * @param bool $compressed Compressed storage |
310 | - * @param int|string $expiry Expires in the given seconds (0:never) or the time defined by valid date string (eg. '2014-10-01' or '1week' or '2hours') |
|
310 | + * @param integer $expiry Expires in the given seconds (0:never) or the time defined by valid date string (eg. '2014-10-01' or '1week' or '2hours') |
|
311 | 311 | * @param int $storeMethod Storing method (serialize|json) |
312 | 312 | * |
313 | 313 | * @return mixed |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * @param mixed $var Variable |
356 | 356 | * @param int $storeMethod serialize|json |
357 | 357 | * |
358 | - * @return mixed |
|
358 | + * @return string |
|
359 | 359 | */ |
360 | 360 | protected function encode($var, $storeMethod = self::STORE_METHOD_SERIALIZE) { |
361 | 361 | switch ($storeMethod) { |
@@ -637,10 +637,10 @@ discard block |
||
637 | 637 | * @param mixed $val variable to be stored |
638 | 638 | * @param array $tags tags |
639 | 639 | * @param bool $compressed Compressed storage |
640 | - * @param int|string $expiry Expires in the given seconds (0:never) or the time defined by valid date string (eg. '2014-10-01' or '1week' or '2hours') |
|
640 | + * @param integer $expiry Expires in the given seconds (0:never) or the time defined by valid date string (eg. '2014-10-01' or '1week' or '2hours') |
|
641 | 641 | * @param int $storeMethod Storing method (serialize|json) |
642 | 642 | * |
643 | - * @return bool |
|
643 | + * @return boolean|null |
|
644 | 644 | */ |
645 | 645 | public function storeTagged($name, $val, $tags, $compressed = false, $expiry = 0, $storeMethod = self::STORE_METHOD_SERIALIZE) { |
646 | 646 | if ($this->store($name, $val, $compressed, $expiry, $storeMethod)) { |
@@ -696,7 +696,7 @@ discard block |
||
696 | 696 | * @param string $name |
697 | 697 | * @param array $tags |
698 | 698 | * |
699 | - * @return array |
|
699 | + * @return null|false |
|
700 | 700 | */ |
701 | 701 | public function setTags($name, $tags) { |
702 | 702 | if ($this->canModify($name)) { |
@@ -712,7 +712,7 @@ discard block |
||
712 | 712 | * @param string $name |
713 | 713 | * @param array $tags |
714 | 714 | * |
715 | - * @return array |
|
715 | + * @return null|false |
|
716 | 716 | */ |
717 | 717 | public function addTags($name, $tags) { |
718 | 718 | if ($this->canModify($name)) { |