public function get($key, &$succeeded = null)
{
$succeeded = false;
$path = $this->cache_dir . '/' . sha1($key);
if (!file_exists($path)) {
return false;
}
$res = file_get_contents($path);
if ($res === false) {
return false;
}
$succeeded = true;
return unserialize($res);
}