Index: engines/memcached.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/Attic/memcached.php,v
retrieving revision 1.1.4.7
diff -u -p -r1.1.4.7 memcached.php
--- engines/memcached.php	14 Feb 2010 16:09:08 -0000	1.1.4.7
+++ engines/memcached.php	1 Jul 2010 16:25:41 -0000
@@ -208,7 +208,13 @@ class memcachedCacheRouterEngine extends
     $this->memcached = new Memcached;
     $this->memcached->setOption(Memcached::OPT_COMPRESSION, $this->settings['compress']);
     foreach ($this->settings['servers'] as $server) {
-      list($host, $port) = explode(':', $server);
+      if (strpos($server, 'unix://') === 0) {
+        $host = $server;
+        $port = 0;
+      }
+      else {
+        list($host, $port) = explode(':', $server);
+      }
       if (!$this->memcached->addServer($host, $port)) {
         watchdog('cache', "Unable to connect to memcached server $host:$port", WATCHDOG_ERROR);
       }
Index: engines/memcache.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/memcache.php,v
retrieving revision 1.1.2.17
diff -u -p -r1.1.2.17 memcache.php
--- engines/memcache.php	4 Feb 2010 16:11:42 -0000	1.1.2.17
+++ engines/memcache.php	1 Jul 2010 16:25:41 -0000
@@ -202,7 +202,13 @@ class memcacheCacheRouterEngine extends 
   function connect() {
     $this->memcache =& new Memcache;
     foreach ($this->settings['servers'] as $server) {
-      list($host, $port) = explode(':', $server);
+      if (strpos($server, 'unix://') === 0) {
+        $host = $server;
+        $port = 0;
+      }
+      else {
+        list($host, $port) = explode(':', $server);
+      }
       if (!$this->memcache->addServer($host, $port)) {
         watchdog('cache', "Unable to connect to memcache server $host:$port", WATCHDOG_ERROR);
       }
