The code is very simple
$mem = $this->memcache->get("memche_".$_SESSION['userid']."_page_".$page);
if(empty($mem)){
// to make another query and save the data to memcache
}
else {
// to get it from memcache
}
But right now there is no data but cache is not empty if i print_r($mem); I get
a:0:{}
And this pass the if statement if(empty())