add Redis as memory type of cache
authorHerb <herb@3speedhub.com>
Fri, 16 Oct 2015 13:40:43 +0000 (09:40 -0400)
committerHerb <herb@3speedhub.com>
Fri, 16 Oct 2015 13:40:43 +0000 (09:40 -0400)
CRM/Utils/Cache.php

index f54c5e104dbc9f07561d72156078868e4f937886..f0fb489d647be2072df7858833215937f74cb5ea 100644 (file)
@@ -180,7 +180,7 @@ class CRM_Utils_Cache {
     foreach ($types as $type) {
       switch ($type) {
         case '*memory*':
-          if (defined('CIVICRM_DB_CACHE_CLASS') && in_array(CIVICRM_DB_CACHE_CLASS, array('Memcache', 'Memcached'))) {
+          if (defined('CIVICRM_DB_CACHE_CLASS') && in_array(CIVICRM_DB_CACHE_CLASS, array('Memcache', 'Memcached', 'Redis'))) {
             $dbCacheClass = 'CRM_Utils_Cache_' . CIVICRM_DB_CACHE_CLASS;
             $settings = self::getCacheSettings(CIVICRM_DB_CACHE_CLASS);
             $settings['prefix'] = $settings['prefix'] . '_' . $params['name'];