hey

i've coded this for memcache:
Memcache settings:

/**
* Cache settings: Memcache API (memcache)
*
* Cache API, running with memcache engine.
*/
$module_memcache_enabled = FALSE; // change to TRUE to enable
$module_memcache_inc = './sites/all/modules/performance/memcache/memcache.inc';
$module_memcache_session_inc = './sites/all/modules/performance/memcache/memcache-session.inc';
if ( $module_memcache_enabled == TRUE ) {
if ( file_exists($module_memcache_inc) ) {
  $conf['cache_inc'] = $module_memcache_inc;
  $conf['session_inc'] = $module_memcache_session_inc;
  $conf['memcache_servers'] = array(
    '127.0.0.1:11211' => 'default',
  );
  $conf['memcache_bins'] = array(
    'cache' => 'default',
    'cache_block' => 'default',
    'cache_bootstrap' => 'default',
    'cache_content' => 'default',
    'cache_filter' => 'default',
    'cache_form' => 'default',
    'cache_menu' => 'default',
    'cache_page' => 'default',
    'cache_pathdst' => 'default',
    'cache_pathsrc' => 'default',
    'cache_uc_price' => 'default',
    'cache_update' => 'default',
    'cache_views' => 'default',
    'cache_views_data' => 'default',
    'session' => 'default',
    'users' => 'default',
  );
}
}

i've also coded a snippet for Auth Cache module. it has been submitted to it's issue queue.
Auth Cache settings:

/**
* Cache settings: Auth Cache (authcache)
*
* Logged-in user backend for Cache Router and Memcache API.
*/
$module_authcache_enabled = TRUE; // change to TRUE to enable
$module_authcache_inc = './sites/all/modules/performance/authcache/authcache.inc';
if ( $module_authcache_enabled == TRUE ) {
if ( file_exists($module_authcache_inc) ) {
  if ( $module_cacherouter_enabled == TRUE ) {
    $conf['cache_inc_via_authcache'] = $module_authcache_inc;
  } elseif ( $module_memcache_enabled == TRUE ) {
    $conf['cache_inc'] = $module_authcache_inc;
  }
}
}

Comments

lpalgarvio’s picture

Version:6.x-1.x-dev» 6.x-1.8
Component:Documentation» Code
Issue tags:+settings.php

changed issue descriptions

lpalgarvio’s picture

Component:Code» Documentation
Category:task» feature
Status:Active» Reviewed & tested by the community
JeffSheltren’s picture

Assigned:Unassigned» JeffSheltren
Status:Reviewed & tested by the community» Closed (duplicate)

I'm working on improving the documentation in other issues which covers most of what you have in your memcache snippet. The other stuff, as you said, probably is better included with the auth cache module. I'm closing this as a duplicate ( know, yours was here first!) to help clean up this issue queue, follow up in http://drupal.org/node/1536222 if needed.