How do I disable memcache? I've inherited a site that connected with memcache even though its not necessary and its not installed on the server. Although I've disabled the memcache module, 
the settings file has these lines which I cannot delete or the site stops working:  

$conf['cache_backends'][] = 'sites/all/modules/contrib/memcache/memcache.inc';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['cache_default_class'] = 'MemCacheDrupal';


I am getting this log message every two or three minutes:


  Failed to connect to memcache server: 127.0.0.1:11211


Clearing the Drupal cache and restarting Apache do not seem to fix the problem.  How can I fix this?
Hi You have to follow below steps in order:


disable and uninstall module.
remove from settings.php and delete folder of module.
clear cache (make sure all tables are empty)


For users using drush:

drush dis memcache

The following extensions will be disabled: memcache
Do you really want to continue? (y/n): y


Thanks