mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* add @method annotations to Cache class
* code beautify
This commit is contained in:
@@ -12,7 +12,7 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
class Cache_APCu
|
||||
{
|
||||
private $prefix = '';
|
||||
private $prefix;
|
||||
private $enabled;
|
||||
|
||||
public function __construct($prefix = '')
|
||||
@@ -31,8 +31,9 @@ class Cache_APCu
|
||||
public function get($key)
|
||||
{
|
||||
$tmp = '';
|
||||
if($this->fetch($this->prefix . $key, $tmp))
|
||||
if($this->fetch($this->prefix . $key, $tmp)) {
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
@@ -49,4 +50,3 @@ class Cache_APCu
|
||||
return $this->enabled;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user