[eluser]hema[/eluser]
$this->load->library('Cache');
$this->cache->useMemcache(MEMCACHE_IP, MEMCACHE_PORT);
//from databse
$query = $this->db->get("country");
$Data= $query->result_array();
foreach ($Data as $Key => $Value)
{
$data = $Value;
$this->cache->save($data["CountryId"].'_country',$data,NULL,3600);
$user = $this->cache->get('$data["CountryId"]_country');
print_r($user);
echo "<br>";
}
// $user is giving me an empty result
Iam getting values from DB but, iam getting an empty page when i run the code.