Welcome Guest, Not a member yet? Register   Sign In
Codeigniter2. Problems with Memcached
#1

[eluser]zebric[/eluser]
Hi all! Somehow, this does not work code:
Code:
$this->load->driver('cache');
$this->cache->memcached->save('var_name', 'var_value', 60);
echo $this->cache->memcached->get('var_name');

As a result of an error:
Fatal error: Call to a member function add () on a non-object in: system \ libraries \ Cache \ drivers \ Cache_memcached.php on line 67

In line 67 the method save:
Code:
public function save ($ id, $ data, $ ttl = 60)
{
return $ this-> _memcached-> add ($ id, array ($ data, time (), $ ttl), $ ttl);
}
Add method somehow I do not see ...., maybe this problem?




Theme © iAndrew 2016 - Forum software by © MyBB