When using

include_once('./includes/cache.inc');
include_once('./sites/all/modules/memcache/memcache.inc');
$conf['cache_default_class'] = 'MemCacheDrupal';

memcache is working fine.

However, when I try to use memcache.db.inc I get the following error:

Fatal error: Cannot redeclare cache_get() (previously declared in /var/www/html/drupal7/includes/cache.inc:49) in /var/www/html/drupal7/sites/all/modules/memcache/memcache.db.inc on line 77

Regards.

Comments

jeremy’s picture

The memcache.db.inc include file is known to be buggy and was intentionally deprecated. I'm not sure why it still exists in the 7.x-1.x-dev branch, it needs to be deleted as it is unsupported.

jeremy’s picture

Status: Active » Fixed

The README noted that memcache.db.inc had not been ported. I have removed it from the 7.x-1.x-dev branch to prevent future confusion:
http://drupalcode.org/project/memcache.git/commitdiff/e62f3f6?hp=597718b...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.