@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Tries to find and include a file for a cache engine and returns object instance |
| 80 | 80 | * |
| 81 | 81 | * @param $name Name of the engine |
| 82 | - * @return mixed $engine object or null |
|
| 82 | + * @return boolean $engine object or null |
|
| 83 | 83 | * @access private |
| 84 | 84 | */ |
| 85 | 85 | private function loadEngine($name) |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | * |
| 207 | 207 | * @param string $key Identifier for the data |
| 208 | 208 | * @param mixed $value Data to be cached - anything except a resource |
| 209 | - * @param mixed $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
| 209 | + * @param string $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
| 210 | 210 | * string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600') |
| 211 | 211 | * @return boolean True if the data was successfully cached, false on failure |
| 212 | 212 | * @access public |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | * generates a safe key |
| 385 | 385 | * |
| 386 | 386 | * @param string $key the key passed over |
| 387 | - * @return mixed string $key or false |
|
| 387 | + * @return false|string string $key or false |
|
| 388 | 388 | * @access private |
| 389 | 389 | */ |
| 390 | 390 | public function key($key) |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | * @param string $key Identifier for the data |
| 450 | 450 | * @param mixed $value Data to be cached |
| 451 | 451 | * @param mixed $duration How long to cache the data, in seconds |
| 452 | - * @return boolean True if the data was successfully cached, false on failure |
|
| 452 | + * @return boolean|null True if the data was successfully cached, false on failure |
|
| 453 | 453 | * @access public |
| 454 | 454 | */ |
| 455 | 455 | public function write($key, $value, $duration = null) |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * Delete a key from the cache |
| 474 | 474 | * |
| 475 | 475 | * @param string $key Identifier for the data |
| 476 | - * @return boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
| 476 | + * @return boolean|null True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
| 477 | 477 | * @access public |
| 478 | 478 | */ |
| 479 | 479 | public function delete($key) |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | * Delete all keys from the cache |
| 485 | 485 | * |
| 486 | 486 | * @param boolean $check if true will check expiration, otherwise delete all |
| 487 | - * @return boolean True if the cache was successfully cleared, false otherwise |
|
| 487 | + * @return boolean|null True if the cache was successfully cleared, false otherwise |
|
| 488 | 488 | * @access public |
| 489 | 489 | */ |
| 490 | 490 | public function clear($check) |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | /** |
| 495 | 495 | * Cache Engine settings |
| 496 | 496 | * |
| 497 | - * @return array settings |
|
| 497 | + * @return integer settings |
|
| 498 | 498 | * @access public |
| 499 | 499 | */ |
| 500 | 500 | public function settings() |