Codeigniter: Memcached fix

Created on 5 Apr 2016  路  7Comments  路  Source: bcit-ci/CodeIgniter

On CI_Session_memcached_driver method open
put this check
if(!class_exists('Memcached')){
die('Memcached class not installed.

Please install first Memcached on your server.');
}

    $this->_memcached = new Memcached();

Most helpful comment

Because I don't have a Memcache instance, nor the time, desire and/or obligation to do so.

All 7 comments

You are responsible to know that Memcached isn't available on the server before you configure CodeIgniter to use it ...

If I use however Memcache no Memcached? what happens then?

Nothing different ... you'd be trying to use something that the library doesn't support.

can you do for Memcache?

No.

Why?

Because I don't have a Memcache instance, nor the time, desire and/or obligation to do so.

Was this page helpful?
0 / 5 - 0 ratings